/* ========================================
   CHINOME HOUSE HOSTAL - Reservas Styles
   Paleta Tierra: #ef8c00, #520c25, #003b36, #695c1a, #a21915, #c26115
   ======================================== */

:root {
    /* Earth Colors */
    --amber: #ef8c00;
    --wine: #520c25;
    --forest: #003b36;
    --olive: #695c1a;
    --terracotta: #a21915;
    --burnt-orange: #c26115;
    
    /* Extended Palette */
    --sand: #f5e6d3;
    --cream: #faf6f0;
    --clay: #d4a574;
    --moss: #8b9a46;
    --stone: #8b7355;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, var(--amber) 0%, var(--burnt-orange) 100%);
    --gradient-earth: linear-gradient(135deg, var(--forest) 0%, var(--olive) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--terracotta) 0%, var(--wine) 100%);
    
    /* Payment Colors */
    --success: #28a745;
    --success-light: #d4edda;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #faf6f0;
    --gray-100: #f5f0e8;
    --gray-200: #e8e0d5;
    --gray-300: #d4ccc0;
    --gray-400: #b0a89c;
    --gray-500: #8a8276;
    --gray-600: #6b5b4f;
    --gray-700: #4d4339;
    --gray-800: #3d332b;
    --gray-900: #1a1612;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(26, 22, 18, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 22, 18, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 22, 18, 0.12);
    --shadow-xl: 0 16px 48px rgba(26, 22, 18, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--cream);
    line-height: 1.6;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-warm);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--amber);
}

/* ========================================
   PROGRESS STEPPER
   ======================================== */
.progress-section {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 10px;
    position: relative;
    top: -15px;
}

.step.active .step-icon {
    background: var(--gradient-warm);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 140, 0, 0.4);
}

.step.active .step-label {
    color: var(--amber);
}

.step.completed .step-icon {
    background: var(--success);
    color: var(--white);
}

.step.completed .step-line {
    background: var(--success);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.reservation-main {
    padding: 40px 0 80px;
}

/* ========================================
   STEP CONTENT
   ======================================== */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 30px;
}

.step-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-header h2 i {
    color: var(--amber);
}

.step-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========================================
   STEP 1: DATES & ROOMS
   ======================================== */
.dates-selector {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-input-wrapper {
    position: relative;
}

.date-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--amber);
    font-size: 1rem;
}

.date-input-wrapper input {
    padding-left: 45px;
    height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.date-input-wrapper input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(239, 140, 0, 0.1);
}

.nights-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--gray-100);
    border-radius: 10px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.nights-summary i {
    color: var(--amber);
}

.nights-summary.has-nights {
    background: rgba(239, 140, 0, 0.1);
    color: var(--amber);
    font-weight: 600;
}

/* Rooms Section */
.rooms-section h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.room-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.room-option {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.room-option:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-md);
}

.room-option.selected {
    border-color: var(--amber);
    background: rgba(239, 140, 0, 0.03);
}

.room-option.featured {
    border-color: var(--amber);
}

.room-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-warm);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--clay) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.room-image i {
    font-size: 2rem;
    color: var(--stone);
}

.room-info {
    flex: 1;
}

.room-info h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.room-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.room-features span {
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-features span i {
    color: var(--amber);
    font-size: 0.7rem;
}

.room-price {
    text-align: right;
    margin-right: 15px;
}

.room-price .price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--amber);
    display: block;
}

.room-price .period {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.room-select input {
    display: none;
}

.select-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-option:hover .select-btn,
.room-option.selected .select-btn {
    background: var(--gradient-warm);
    border-color: var(--amber);
    color: var(--white);
}

/* ========================================
   STEP 2: GUEST FORM
   ======================================== */
.guest-form {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--amber);
    padding: 12px 15px;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    font-size: 0.95rem;
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--amber);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    border-left: 2px solid var(--gray-200);
    border-radius: 10px;
    resize: none;
}

textarea.form-control:focus {
    border-left-color: var(--amber);
}

/* ========================================
   STEP 3: EXTRAS
   ======================================== */
.extras-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.extra-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-option:hover {
    border-color: var(--amber);
}

.extra-option.selected {
    border-color: var(--amber);
    background: rgba(239, 140, 0, 0.03);
}

.extra-select {
    position: relative;
}

.extra-select input {
    display: none;
}

.checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.extra-option.selected .checkmark {
    background: var(--amber);
    border-color: var(--amber);
}

.extra-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.extra-info {
    flex: 1;
}

.extra-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.extra-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.extra-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--amber);
}

.extra-price small {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* ========================================
   STEP 4: PAYMENT
   ======================================== */
.payment-section {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.payment-methods h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.method-option {
    position: relative;
}

.method-option input {
    display: none;
}

.method-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.method-option label i {
    font-size: 1.5rem;
    color: var(--amber);
}

.method-option label span {
    font-weight: 500;
    color: var(--gray-700);
}

.method-option.active label,
.method-option input:checked + label {
    background: rgba(239, 140, 0, 0.08);
    border-color: var(--amber);
}

/* Payment Forms */
.payment-form {
    display: none;
}

.payment-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Credit Card Preview */
.credit-card-preview {
    perspective: 1000px;
    margin-bottom: 30px;
}

.card-front {
    width: 100%;
    max-width: 350px;
    height: 200px;
    background: var(--gradient-earth);
    border-radius: 16px;
    padding: 25px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-chip i {
    color: #8b7355;
    font-size: 1.2rem;
}

.card-logo {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    opacity: 0.9;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.card-details {
    display: flex;
    justify-content: space-between;
}

.card-holder span,
.card-expiry span {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
    margin-bottom: 3px;
}

.card-holder p,
.card-expiry p {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin: 0;
}

.card-brands {
    display: flex;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--gray-500);
}

/* PSE & Nequi Forms */
.pse-info,
.nequi-info {
    text-align: center;
    padding: 30px;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 25px;
}

.pse-icon,
.nequi-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--white);
}

.pse-info p,
.nequi-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

/* Person Type & App Options */
.person-type,
.app-options {
    display: flex;
    gap: 15px;
}

.type-option,
.app-option {
    flex: 1;
}

.type-option input,
.app-option input {
    display: none;
}

.type-option span,
.app-option span {
    display: block;
    padding: 15px;
    background: var(--gray-100);
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.type-option input:checked + span,
.app-option.active span,
.app-option input:checked + span {
    background: rgba(239, 140, 0, 0.1);
    border-color: var(--amber);
    color: var(--amber);
    font-weight: 600;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.badge-item i {
    color: var(--success);
    font-size: 1rem;
}

/* ========================================
   CONFIRMATION
   ======================================== */
.confirmation-box {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.confirmation-icon i {
    font-size: 3.5rem;
    color: var(--success);
}

.confirmation-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.confirmation-box > p {
    color: var(--gray-600);
    margin-bottom: 30px;
}

.confirmation-details {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.detail-row strong {
    color: var(--gray-900);
    font-weight: 600;
}

.detail-row.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--gray-300);
}

.detail-row.total span,
.detail-row.total strong {
    font-size: 1.1rem;
    color: var(--amber);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ========================================
   STEP ACTIONS
   ======================================== */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-warm);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 140, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 140, 0, 0.45);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--amber);
    color: var(--amber);
}

/* ========================================
   RESERVATION SUMMARY (SIDEBAR)
   ======================================== */
.reservation-summary {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 140px;
}

.reservation-summary h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reservation-summary h3 i {
    color: var(--amber);
}

.summary-section {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item .label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.summary-item .value {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.9rem;
}

.summary-item.room-item {
    flex-direction: column;
    gap: 5px;
}

.summary-item.room-item .label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.summary-item.room-item .value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--amber);
}

.extras-summary .summary-item {
    font-size: 0.85rem;
}

.summary-totals {
    padding-top: 15px;
}

.summary-totals .summary-item.subtotal,
.summary-totals .summary-item.iva {
    font-size: 0.9rem;
}

.summary-totals .summary-item.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--gray-200);
}

.summary-totals .summary-item.total .label {
    font-weight: 600;
    color: var(--gray-900);
}

.summary-totals .summary-item.total .value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber);
}

.summary-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--success);
}

.summary-note i {
    margin-top: 2px;
}

/* Trust Badges */
.trust-badges {
    margin-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--amber);
}

.trust-item span {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 18, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.loading-content span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .stepper {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .step-line {
        width: 40px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .reservation-summary {
        position: static;
        margin-top: 30px;
    }
    
    .room-option {
        flex-wrap: wrap;
    }
    
    .room-price {
        width: 100%;
        text-align: left;
        margin: 10px 0;
    }
    
    .confirmation-box {
        padding: 30px 20px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-line {
        width: 20px;
        top: -10px;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
    }
    
    .card-front {
        height: 170px;
        padding: 20px;
    }
    
    .card-number {
        font-size: 1.1rem;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .person-type,
    .app-options {
        flex-direction: column;
    }
}
