* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    font-family: 'Inter', sans-serif;
    color: black;
    background-color: white;
}

strong {
    font-family: inherit;
}

.background-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.bg-image {
    width: 100%;
    height: auto;
    display: block;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600; /* Semi Bold */
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: black; /* Back to black */
}

.title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    font-family: 'Playfair Display', sans-serif;
}


/* Services Section */
.services-section {
    background-color: rgb(255, 255, 255);
    color: black;
    padding: 4rem 0;
    width: 100%;
}

.services-section .container {
    width: 80%;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 2.2rem; /* Slightly larger for the new font */
    font-weight: 400; /* Regular for Playfair as requested */
    font-family: 'Playfair Display', sans-serif;
    margin-bottom: 1.5rem;
}


.section-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    width: 90%;
}


.pricing-grid {
    display: flex;
    gap: 8rem; /* Increased separation */
    flex-wrap: wrap;
}

.pricing-column {
    flex: 1;
    min-width: 300px;
    max-width: 450px; /* Make columns a bit smaller */
}

.column-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700; /* Bold */
    margin-bottom: 1.5rem;
    color: #333;
}

.pricing-item {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    gap: 3rem; /* Fixed gap to keep values closer but separated */
    padding: 0.6rem 0;
    border-bottom: 1px solid black;
    font-size: 1.3rem; 
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Regular for suffix text */
}

.pricing-label {
    min-width: 160px; /* Fixed minimum width for alignment of values */
    flex-shrink: 0;
}

.pricing-item strong {
    font-weight: 700; /* Bold as requested */
}


/* Benefits Section */
.benefits-section {
    font-family: 'Inter', sans-serif;
    background-color: #dadada;
    padding: 4rem 0;
    width: 100%;
}

.benefits-section .container {
    width: 80%;
    margin: 0 auto;
}

/* REM Section */
.rem-section {
    background-color: white;
    padding: 2rem 0; /* Reduced from 5rem */
    width: 100%;
}

.rem-section .container {
    width: 65%; /* Narrower width for reading comfort */
    margin: 0 auto;
    text-align: left; /* Text remains on the left */
}


.rem-section .centered {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
}

.rem-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgb(89, 89, 89);
}


/* Spacing Utilities */
.mt-moderate {
    margin-top: 2.5rem;
}

.mt-small {
    margin-top: 1.2rem;
}


.benefits-grid {
    display: flex;
    gap: 3rem; /* Slightly more gap for clarity */
    flex-wrap: wrap;
}

.benefits-column {
    flex: 1;
    min-width: 200px;
}

/* Constrain the first column as requested */
.benefits-column:first-child {
    flex: 0 0 auto;
    width: 120px;
}

.benefits-title, 
.benefits-title strong {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important; /* Bold as requested */
    font-size: 1.2rem; /* Agrandado un poquito */
    text-transform: none; 
    letter-spacing: normal;
    margin-bottom: 0.4rem; 
}

.benefits-column:first-child .benefits-title {
    font-size: 1.4rem; /* Un poco más grande para el título principal */
}

.benefits-list {
    list-style: disc;
    padding-left: 1.2rem;
}

.benefits-list li {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Regular as requested */
    font-size: 0.95rem; /* Achicado un poquito */
    line-height: 1.3;
    margin-bottom: 0.2rem; /* Tighter spacing between items */
}



/* Comanda Section */
.comanda-section {
    background-color: #ffffff;
    color: black;
    padding: 2rem 0 5rem 0; /* Reduced top padding */
    width: 100%;
}

.comanda-section .container {
    width: 80%;
    margin: 0 auto;
    text-align: left; /* Aligned to the left as requested */
}

.comanda-title {
    font-size: 2.2rem; /* Matching ¿Qué incluye el servicio? */
    font-family: 'Playfair Display', sans-serif;
    font-weight: 400;
    margin-bottom: 2rem;
}


.comanda-subtitle {
    font-size: 1.5rem; /* Matching column-title style */
    font-weight: 900;
    color: #333;
    margin-bottom: 2rem;
}

.comanda-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%; /* Occupy total usable space */
}

.comanda-btn {
    position: relative; /* For the pseudo-element position */
    overflow: hidden;
    flex: 1;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Inner frame pseudo-element */
.comanda-btn::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}



.comanda-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.comanda-btn:not(:disabled):hover::after {
    opacity: 1;
}

.comanda-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}





/* Comanda Form Section */
.comanda-form-section {
    background-color: #ffffff;
    padding-bottom: 2rem; /* Reduced from 5rem */
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll if any */
}

/* Remove standard container behavior for the asymmetrical look */
.comanda-form-section .container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.form-container {
    background-color: #dadada;
    border-radius: 0;
    padding: 2.5rem 2.5rem 2.5rem 10%; /* 10% left padding for alignment */
    margin: 0;
    width: 100%;
    box-sizing: border-box; /* Crucial for width calculation */
}

.form-header {
    margin-bottom: 1.5rem;
    padding-right: 10%;
}

/* 30/70 Split Layout */
.contact-row {
    display: flex;
    gap: 0;
    width: 100%;
}

.contact-title-col {
    flex: 0 0 30%;
}

.contact-fields-col {
    flex: 0 0 70%;
    padding-right: 10%;
}

.form-separator {
    border: none;
    border-top: 1px solid black;
    margin: 2rem -2.5rem 2.5rem -15%;
    width: calc(100% + 15% + 2.5rem);
}

/* Summary Cards Styles */
.summary-container {
    padding-right: 2rem;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem 0.8rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #444;
}

.summary-item-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem; /* Reduced space between items */
}

/* Shared column widths for perfect alignment */
.col-estaciones { flex: 1.3; }
.col-servicio { flex: 1; }
.col-precio { flex: 0 0 170px; text-align: right; }
.col-actions { flex: 0 0 24px; text-align: center; }

.summary-card {
    flex: 1;
    background-color: white;
    padding: 0.6rem 1.5rem; /* Less height */
    display: flex;
    align-items: center;
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Regular as requested */
    font-size: 0.95rem;
    border-radius: 4px; /* Less rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.summary-card .service-name {
    font-size: 0.85rem;
    color: #666;
}

.summary-card .price-value {
    font-size: 1.05rem;
}

.summary-card .price-value b,
.summary-card b {
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Bold */
}

.remove-station-btn {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.remove-station-btn:hover {
    transform: scale(1.2);
}

/* Total Card specific */
.total-wrapper {
    margin-top: 3rem; /* Adjusted space for total */
}

.total-card {
    font-weight: 400;
    background-color: white; /* Maintain white background */
}

.total-card b {
    font-size: 1.15rem;
}



.form-title {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: black;
}

.form-subtitle {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: black;
}


.group-title {
    font-size: 1.5rem; /* Matched to form-title */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: black; /* Matched to form-title */
}


.input-group {
    margin-bottom: 0.8rem; /* Even more compact */
}

.line-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid black;
    padding: 0.3rem 0; /* Reduced padding */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; /* Smaller font */
    outline: none;
    transition: border-bottom-color 0.3s ease;
}

.line-input:focus {
    border-bottom-color: #666;
}

.line-input::placeholder {
    color: black;
}


textarea.line-input {
    min-height: 40px; /* Reduced to ~2 lines */
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0; /* Reduced margin */
}


.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem; /* Smaller font */
    cursor: pointer;
}


.checkbox-item input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid black;
    border-radius: 2px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: grid;
    place-content: center;
}

.checkbox-item input:checked {
    background-color: black;
}

.checkbox-item input::before {
    content: "";
    width: 6px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    opacity: 0;
    margin-top: -3px; /* Ajuste fino de posición */
}

.checkbox-item input:checked::before {
    opacity: 1;
}

.form-submit {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.submit-btn {
    flex: 0 0 auto !important;
    min-width: 200px !important; /* Smaller width */
    padding: 0.8rem 2rem !important; /* Smaller padding */
    border-radius: 50px !important; /* Rounded pill shape */
}

.submit-btn::after {
    border-radius: 50px !important; /* Match the rounded look */
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .title {
        font-size: 2.2rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* Premium glassmorphism */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: black;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: black;
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-instruction {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: #ddd;
    background-color: #fbfbfb;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    transition: background 0.2s;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.accordion-item.active .chevron {
    transform: rotate(-135deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
}

.accordion-item.active .accordion-panel {
    max-height: 500px; /* Adjust as needed */
    padding-bottom: 1rem;
}

.stations-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem 0;
}

.station-row {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
}

.station-row:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: black;
}

.station-row.selected {
    background-color: rgba(139, 195, 74, 0.15); /* Verde más transparente y suave */
    border-color: #8bc34a;
    color: #4a7c10; /* Texto en un verde oscuro para contraste */
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.1);
}

/* --- DETALLE MODAL SPECIFIC (Separate Flow) --- */
#detalle-modal .modal-body {
    padding: 0;
    overflow: hidden;
    position: relative;
    display: block; /* Removed flex to avoid split look */
}

#detalle-view-container {
    width: 100%;
}

#detalle-modal .view-layer {
    width: 100%;
    padding: 1.5rem 2rem 3rem 2rem; /* Increased bottom padding to 3rem */
    height: 60vh;
    overflow-y: auto;
    background-color: white;
    animation: fadeIn 0.3s ease-out;
}

#detalle-view-dates {
    display: none; /* Hidden by default */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

#detalle-modal .station-config-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: black;
    margin-bottom: 0.5rem;
}

.date-selection-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.year-selector label, .month-selector label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.date-item {
    padding: 0.8rem 0.5rem;
    background-color: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #444;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.date-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.date-item.selected {
    background-color: rgba(139, 195, 74, 0.15);
    border-color: #8bc34a;
    color: #4a7c10;
    font-weight: 700;
}

.date-item.active {
    background-color: #333;
    color: white;
    border-color: #000;
    font-weight: 700;
}

/* Consistent highlight for configured stations */
#detalle-modal .station-row.has-config {
    background-color: rgba(139, 195, 74, 0.15);
    border-color: #8bc34a;
    color: #4a7c10;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.1);
}

#detalle-modal .modal-footer .modal-btn {
    min-width: 140px;
}
/* --- END DETALLE MODAL --- */

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-btn {
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background-color: #dadada;
    color: #333;
    border: none;
}

.cancel-btn:hover {
    background-color: #ccc;
}

.save-btn {
    background-color: #333;
    color: white;
    border: none;
}

.save-btn:hover {
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Custom Green Accent for a "breaking" look as requested */
.save-btn.accent {
    background-color: #8bc34a;
    color: white;
}





/* Price Display (for discounts) */
.original-price-strikethrough {
    text-decoration: line-through;
    color: #cc0000;
    margin-left: 8px; /* Added left margin for the new order */
    font-size: 0.9em;
    font-weight: 400;
}

.discounted-price {
    color: black; /* Changed to black as requested */
    font-weight: 700;
    white-space: nowrap; /* Prevent line break */
}

/* Spinner for Loading State */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn:disabled .spinner {
    border-top-color: rgba(255, 255, 255, 0.5);
}

/* Notification Icons */
.notif-success { color: #8bc34a; }
.notif-error { color: #f44336; }

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    /* Header Image Adjustment */
    .bg-image {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }

    /* 1. Containers & Spacing */
    .services-section .container,
    .benefits-section .container,
    .comanda-section .container {
        width: 90%;
    }
    .rem-section .container {
        width: 95%; /* Even wider for text block */
    }
    
    .services-section, .benefits-section, .rem-section, .comanda-section {
        padding: 2.5rem 0; /* Reduced vertical padding */
    }

    /* 2. Typography */
    .content {
        width: 90%;
        text-align: center;
        /* Re-center horizontally and vertically because of width change */
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .subtitle {
        text-align: center;
    }
    .title {
        font-size: 2rem;
        line-height: 1.2;
    }
    .section-subtitle {
        font-size: 1.8rem;
    }

    /* 3. Grids & Layouts */
    .pricing-grid {
        gap: 2rem;
        flex-direction: column;
    }
    .pricing-column {
        width: 100%;
        max-width: none;
    }
    .pricing-label {
        min-width: 120px; /* Adjust left-column fixed width */
        font-size: 1.1rem;
    }
    .pricing-item {
        font-size: 1.1rem;
        gap: 1rem;
    }

    .benefits-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .benefits-column {
        width: 100%;
    }
    .benefits-column:first-child {
        width: 100%;
        text-align: left;
    }

    .comanda-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .comanda-btn {
        width: 100%;
        min-width: unset;
        font-size: 1rem;
        padding: 1rem;
    }

    /* 4. Form Section */
    .comanda-form-section {
        padding-bottom: 2rem; 
    }
    .form-container {
        padding: 1.5rem;
        width: 100%;
    }
    .form-header {
        padding-right: 0;
    }
    .form-separator {
        margin: 2rem -1.5rem 1.5rem -1.5rem;
        width: calc(100% + 3rem);
    }
    .contact-row {
        flex-direction: column;
    }
    .contact-title-col, .contact-fields-col {
        flex: 0 0 100%;
    }
    .contact-fields-col {
        padding-right: 0;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 1rem;
    }

    .form-submit {
        justify-content: center;
    }
    .submit-btn {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
    }

    /* Summary Cards in Mobile */
    .summary-header {
        display: none; /* Hide the table headers on mobile */
    }
    .summary-item-wrapper {
        align-items: flex-start;
    }
    .remove-station-btn {
        margin-top: 0.8rem;
    }
    .summary-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.5rem;
    }
    .summary-card .col-estaciones, 
    .summary-card .col-servicio, 
    .summary-card .col-precio {
        flex: 1 1 100%;
        text-align: left;
    }
    .summary-card .col-precio {
        margin-top: 0.5rem;
        border-top: 1px dashed #ccc;
        width: 100%;
        padding-top: 0.5rem;
    }

    /* 5. Modals */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    .modal-header {
        padding: 1rem;
    }
    .modal-body {
        padding: 1rem;
    }
    .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse; /* Cancel below Save on mobile */
    }
    .modal-btn {
        width: 100%;
    }
    #detalle-modal .view-layer {
        padding: 1rem 1rem 2rem 1rem;
    }

    /* Calendars */
    .year-grid, .month-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .date-item {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}
