/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background-color: #F4F1E8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 95, 93, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #D4A574;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/cm_en_armonia_promo.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 93, 0.9) 0%, rgba(212, 165, 116, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    background: #D4A574;
    color: #2D3748;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #B8935F;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2C5F5D;
}

.section-header p {
    font-size: 1.2rem;
    color: #718096;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #D4A574;
}

.service-card.selected {
    border-color: #2C5F5D;
    background: #f8f9fa;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2C5F5D, #D4A574);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2C5F5D;
}

.service-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #D4A574;
    margin-bottom: 1rem;
}

.service-card p {
    color: #718096;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: #F4F1E8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: #2C5F5D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2C5F5D;
}

.benefit-item p {
    color: #718096;
}

/* Bloques de resumen de selección */
.booking-summary {
    background: #F8F9FA;
    border-left: 4px solid #D4A574;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    color: #2C5F5D;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-summary h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #D4A574;
    font-weight: bold;
}

.booking-summary span {
    font-size: 1.1rem;
    font-weight: normal;
    color: #2C5F5D;
}

/* Espacio de desconexion */
.wellness {
    padding: 6rem 0px;
    background: radial-gradient(1200px 600px at 10% 0%, rgba(212, 165, 116, 0.12), transparent 60%),
                radial-gradient(1000px 500px at 90% 20%, rgba(44, 95, 93, 0.10), transparent 60%),
                #F2ECE0;
    overflow: hidden;
}

/* Booking Section */
.booking {
    padding: 6rem 0;
    background: white;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-step {
    margin-bottom: 3rem;
}

.booking-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2C5F5D;
    text-align: center;
}

/* Service Selection */
.service-selection {
    display: grid;
    gap: 1rem;
}

.service-option {
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-option:hover {
    border-color: #D4A574;
    background: #f8f9fa;
}

.service-option.selected {
    border-color: #2C5F5D;
    background: #2C5F5D;
    color: white;
}

.service-name {
    font-weight: bold;
}

.service-details {
    color: #D4A574;
    font-weight: bold;
}

.service-option.selected .service-details {
    color: #D4A574;
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav {
    background: #2C5F5D;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.calendar-nav:hover {
    background: #1a3f3d;
}

#current-month {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2C5F5D;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.calendar-day.available {
    background: #2C5F5D;
    color: white;
}

.calendar-day.available:hover {
    background: #D4A574;
    transform: scale(1.1);
}

.calendar-day.selected {
    background: #D4A574;
    color: #2D3748;
}

.calendar-day.unavailable {
    background: #E2E8F0;
    color: #A0AEC0;
    cursor: not-allowed;
}

.calendar-day.other-month {
    color: #CBD5E0;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.time-slot {
    padding: 1rem;
    background: #2C5F5D;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.time-slot:hover {
    background: #D4A574;
    transform: scale(1.05);
}

.time-slot.selected {
    background: #D4A574;
    color: #2D3748;
}

.time-slot.unavailable {
    background: #E2E8F0;
    color: #A0AEC0;
    cursor: not-allowed;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2C5F5D;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2C5F5D;
}

.confirm-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.confirm-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Testimonials Section - Slider Style */
.testimonials {
    padding: 6rem 0;
    background: #F4F1E8;
}

.testimonial-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Easing for smooth slide */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    flex-shrink: 0; /* Prevents cards from shrinking */
    width: calc(33.333% - 1.333rem); /* Base width for 3 cards, accounting for 2rem gap */
}

.stars {
    margin-bottom: 1rem;
    color: #D4A574;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #718096;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: bold;
    color: #2C5F5D;
}

/* Nuestra historia */
.history {
    /* Sección envolvente: fondo cálido con acentos sutiles */
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(1200px 600px at 10% 0%, rgba(212, 165, 116, 0.12), transparent 60%),
                radial-gradient(1000px 500px at 90% 20%, rgba(44, 95, 93, 0.10), transparent 60%),
                #F4F1E8;
    overflow: hidden;
}

.history-content {
    /* Bloque de texto justificado y legible */
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.history-content p {
    /* Texto justificado y legible */
    font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
    margin-bottom: 1rem;
    color: #4A5568;
    line-height: 1.75;
    letter-spacing: 0.1px;
}

.history-footer {
    /* Frase de cierre fuera de .historia-content */
    font-size: clamp(1.25rem, 0.98rem + 0.4vw, 1.5rem);
    text-align: center;
    color: #2D3748;
    font-weight: bold;
    margin-top: 1.5rem;
}

.cta-history {
    /* Contenedor del CTA */
    text-align: center;
    margin-top: 1.25rem;
}

.cta-history a {
    /* Botón principal: énfasis y accesibilidad */
    --color-base: #2C5F5D;
    --color-acento: #D4A574;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-base) 0%, #3B807D 100%);
    color: #ffffff;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 20px rgba(44,95,93,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    position: relative;
}

.cta-history a::after {
    /* Efecto brillo sutil para atraer la atención */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px 60px at 20% 20%, rgba(255,255,255,0.35), transparent 60%);
    pointer-events: none;
}

.cta-history a:hover {
    background: linear-gradient(135deg, var(--color-acento) 0%, #E1B98E 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.22);
}

.cta-history a:active {
    transform: translateY(-1px);
}

.cta-history a:focus-visible {
    outline: 3px solid rgba(212,165,116,0.5);
    outline-offset: 3px;
}

/* Micro-animación para el CTA (latido suave) */
@keyframes pulse-cta-history {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.02); }
}

.cta-history a[data-anim="pulse"],
.history .cta-history a {
    animation: pulse-cta-history 3.2s ease-in-out infinite;
}

/* Responsivo */
@media (min-width: 992px) {
    .history { padding: 7rem 0; }
    .history-content { margin-bottom: 2rem; }
    .cta-history a { padding: 1.1rem 2.6rem; font-size: 1.05rem; }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: #2C5F5D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2C5F5D;
}

.contact-info {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.contact-detail {
    color: #718096;
}

.coverage-badge {
    text-align: center;
    background: #2C5F5D;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: 300px;
}

/* Footer */
.footer {
    background: #2C5F5D;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0 !important;
}

/* Pop-up Promoción Black Friday */
.promo-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
}

.promo-popup.is-visible {
    display: flex;
}

.promo-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.promo-popup-content {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2.25rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    color: #2D3748;
    overflow: hidden;
}

.promo-popup-content::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(600px 400px at 0% 0%, rgba(212, 165, 116, 0.22), transparent 60%),
        radial-gradient(480px 320px at 100% 0%, rgba(44, 95, 93, 0.18), transparent 60%);
    opacity: 0.6;
    z-index: -1;
}

.promo-popup-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: transparent;
    border: none;
    color: #2D3748;
    cursor: pointer;
    font-size: 1.1rem;
}

.promo-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(44, 95, 93, 0.12);
    color: #2C5F5D;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

.promo-popup h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: #2C5F5D;
}

.promo-popup-subtitle {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 1.1rem;
}

.promo-popup-offer {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.promo-popup-offer-main {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2C5F5D;
}

.promo-popup-offer-time {
    display: block;
    font-size: 0.92rem;
    color: #4A5568;
    margin-top: 0.2rem;
}

.promo-popup-offer-price {
    display: inline-block;
    margin-top: 0.55rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #D4A574;
    color: #2D3748;
    font-weight: 700;
}

.promo-popup-text {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 1.2rem;
}

.promo-popup-cta {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #2C5F5D 0%, #3B807D 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 12px 24px rgba(44, 95, 93, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease;
}

.promo-popup-cta:hover {
    background: linear-gradient(135deg, #D4A574 0%, #E1B98E 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}

.promo-popup-cta:active {
    transform: translateY(0);
}

.promo-popup-note {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: #4A5568;
    text-align: center;
}

@media (max-width: 480px) {
    .promo-popup-content {
        padding: 2.1rem 1.6rem 1.6rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(44, 95, 93, 0.98);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.25rem 1.25rem;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .testimonial-card {
        width: calc(50% - 1rem); /* 2 cards visible on tablets */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .booking-form {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        gap: 1rem;
    }

    .testimonial-card {
        width: 100%; /* 1 card visible on mobile */
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.benefit-item,
.testimonial-card,
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}