/* =========================================
   CORTE & FLOW STUDIO - REDISEÑO AIRY & ROUNDED
   Mantenemos la sobriedad, añadimos espacio y claridad.
   ========================================= */

:root {
    /* Color Palette */
    --bg-primary: #EEFDF3;
    /* Very light mint */
    --bg-secondary: #A9DCDF;
    /* Light cyan */
    --accent-cta: #F13043;
    /* Bright red */
    --text-primary: #1D345A;
    /* Dark navy */
    --text-secondary: #457B9C;
    /* Medium blue */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --line-height: 1.8;

    /* Spacing & Shapes */
    --section-padding: 150px 0;
    /* More generous vertical space */
    --container-width: 1100px;
    --border-round: 24px;
    /* Main roundedness */
    --btn-round: 50px;
    /* Pill shape for buttons */
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    /* Uniform background #EEFDF3 */
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: var(--line-height);
    overflow-x: hidden;
    padding-top: 180px;
    /* Extra generous space for floating header */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.text-accent {
    color: var(--accent-cta);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-round);
    height: auto;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 650px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--btn-round);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-cta);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(241, 48, 67, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(241, 48, 67, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--white);
    transform: scale(1.05);
}

.btn-booksy {
    background: var(--text-secondary);
    color: var(--white);
}

.btn-booksy:hover {
    transform: scale(1.05);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 24px;
    /* Airier feel by not sticking to the top edge */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: 70px;
    z-index: 1000;
    /* Higher z-index to stay above content */
    background: #ffffff;
    /* Solid White at all times */
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(29, 52, 90, 0.08);
    /* Stronger shadow on mint background */
    border: 1px solid rgba(169, 220, 223, 0.2);
    transition: all 0.4s ease-in-out;
    /* Smooth transition for expansion */
}

.header.scrolled {
    width: 100%;
    max-width: 100%;
    top: 0;
    border-radius: 0;
    background: #ffffff;
    /* Solid White when scrolled */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 32px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-list li {
    display: flex;
    align-items: center;
}

/* Único separador entre Contacto y Reservar con margen equilibrado respecto al texto */
.nav-list li:last-child::before {
    content: "";
    width: 1px;
    height: 28px;
    background-color: rgba(29, 52, 90, 0.1);
    margin-right: 0;
    /* El padding-left de 36px del botón ya crea el margen derecho necesario */
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.nav-cta.btn-outline {
    border: none;
    color: var(--accent-cta);
    padding-right: 0;
    /* Align perfectly with other links if no border */
}

.nav-cta.btn-outline:hover {
    background: transparent;
    color: var(--accent-cta);
    transform: scale(1.05);
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 90vh;
    /* Restore height for centered feel */
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-primary);
    /* Solid mint #EEFDF3 */
    overflow: hidden;
    scroll-margin-top: 180px;
    /* Reduced top gap for better vertical balance */
    padding-bottom: 80px;
    /* Reducido para que no haya tanto margen con la siguiente sección */
    /* Ensures title is visible below fixed header on anchors */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Removed gradient for unified background flow */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 150px;
    /* Más espacio desde el título/botones */
    border-top: 1px solid rgba(29, 52, 90, 0.1);
    padding-top: 60px;
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.odometer-container {
    display: flex;
    align-items: center;
}

.odometer-digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    position: relative;
}

.odometer-digit-strip {
    display: flex;
    flex-direction: column;
    transition: transform 2.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.odometer-digit-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
}

.contact-details h3 {
    margin-bottom: 24px;
}

.contact-details p {
    margin-bottom: 20px;
}

.contact-highlight {
    font-weight: 700;
    color: var(--text-primary);
}

.contact-highlight a {
    color: var(--accent-cta);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-highlight a:hover {
    opacity: 0.8;
}

/* =========================================
   SECTION LAYOUT
   ========================================= */
.section {
    padding: var(--section-padding);
    scroll-margin-top: 180px;
    /* Aligns title exactly below the fixed header */
}

/* =========================================
   SERVICIOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-round);
    padding: 40px;
    box-shadow: 0 15px 45px rgba(29, 52, 90, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(169, 220, 223, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(29, 52, 90, 0.08);
    border-color: var(--bg-secondary);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--text-primary);
    /* Color #1D345A */
    margin-bottom: 24px;
}

.service-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Standardized aspect ratio */
    object-fit: cover;
    margin-bottom: 24px;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   BOOKSY SECTION
   ========================================= */
.booksy-section {
    padding: var(--section-padding);
}

.booksy-card {
    background: var(--text-primary);
    border-radius: var(--border-round);
    padding: 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.booksy-card h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 24px;
}

.booksy-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.booksy-image {
    border-radius: var(--border-round);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-list {
    list-style: none;
    margin-top: 40px;
}

.contact-list li {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-list i {
    font-size: 2.2rem;
    color: var(--bg-secondary);
}

.contact-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-list span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--btn-round);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 80px 0;
    background-color: var(--bg-primary);
    /* Unified background #EEFDF3 */
    border-radius: var(--border-round) var(--border-round) 0 0;
    text-align: center;
}

.footer-logo {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.footer-rights {
    color: var(--text-primary);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* =========================================
   ANIMATIONS (Scroll Fade Up)
   ========================================= */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .booksy-card {
        grid-template-columns: 1fr;
        padding: 60px 40px;
        gap: 60px;
        text-align: center;
    }

    .booksy-content p {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    body {
        padding-top: 100px; /* Reduced space for mobile header */
    }

    .container {
        padding: 0 32px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .header {
        width: 100%;
        top: 0;
        border-radius: 0;
        height: 80px;
    }

    .header-container {
        padding: 0 32px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        padding: 40px 20px;
        border-radius: 0;
        transform: none;
        clip-path: circle(0% at 100% 0%);
        transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav.nav-open {
        clip-path: circle(150% at 100% 0%);
    }

    .nav-list {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-list li:last-child::before {
        display: none;
    }

    .nav-cta.btn-outline {
        padding: 16px 32px;
        border: 2px solid var(--accent-cta);
        margin-top: 20px;
    }

    .hero {
        min-height: auto;
        padding: 40px 0 100px;
        text-align: center;
        scroll-margin-top: 100px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
        margin-top: 60px;
        align-items: center;
    }

    .stat {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        scroll-margin-top: 100px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .booksy-card {
        padding: 40px 20px;
    }

    .booksy-card h2 {
        font-size: 2rem;
    }

    .contact-list li {
        gap: 16px;
        margin-bottom: 32px;
    }

    .social-links {
        flex-direction: column;
        width: 100%;
    }

    .social-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}