/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores */
    --color-navy: #1B2A4A;
    --color-white: #FFFFFF;
    --color-off-white: #F7F5F2;
    --color-terracota: #C0714F;
    --color-gray: #6B7280;
    --color-light: #E8E4DF;
    --color-navy-dark: #111C30;

    /* Tipografía */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaciado */
    --container-max-width: 1200px;
    --padding-desktop: 80px;
    --padding-mobile: 24px;
    --section-spacing-desktop: 120px;
    --section-spacing-mobile: 80px;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-navy);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--padding-desktop);
}

.section {
    padding: var(--section-spacing-desktop) 0;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
.section-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gray);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-navy);
    margin-bottom: 24px;
}

.section-body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-navy);
    max-width: 600px;
}

.separator-terracota {
    width: 60px;
    height: 1px;
    background-color: var(--color-terracota);
    margin-top: 32px;
}

/* ============================================
   01 — HERO
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1697967464378-1498c293e1aa?q=80&w=2670');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    opacity: 0.65;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.5;
    letter-spacing: 0.02em;
    max-width: 480px;
    margin: 0 auto 20px;
    opacity: 0.95;
}

.hero-note {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero-note--helper {
    margin-top: 16px;
    margin-bottom: 0;
}

.hero-ctas {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.hero-chip {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(0, 0, 0, 0.18);
}

.logo {
    width: 720px;
    height: auto;
    margin-bottom: 32px;
}

.logo-footer {
    width: 320px;
    height: auto;
}

.logo-light path {
    fill: var(--color-white);
}

.logo-light rect {
    fill: var(--color-terracota);
}

.logo-light text {
    fill: var(--color-white);
}

.logo-light line {
    stroke: var(--color-terracota);
}

.logo-dark text {
    fill: var(--color-navy);
}

.logo-dark path {
    fill: var(--color-navy);
}

.logo-dark rect {
    fill: var(--color-terracota);
}

.logo-dark line {
    stroke: var(--color-terracota);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.4;
}

/* ============================================
   02 — QUIÉNES SOMOS
   ============================================ */
.section-about {
    background-color: var(--color-off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 80px;
    align-items: center;
}

.about-text {
    padding-right: 40px;
}

.about-image {
    min-height: 400px;
    background-color: var(--color-light);
    /* Espacio para imagen opcional */
}

/* ============================================
   03 — SERVICIOS
   ============================================ */
.section-services {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section-services .section-title {
    color: var(--color-white);
    margin-bottom: 64px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.service-item {
    text-align: left;
}

.service-icon {
    width: 64px;
    height: 64px;
    color: var(--color-white);
    margin-bottom: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.service-separator {
    width: 40px;
    height: 1px;
    background-color: var(--color-terracota);
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 12px;
}

.service-description {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   04 — CÓMO TRABAJAMOS
   ============================================ */
.section-how {
    background-color: var(--color-white);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.how-step-number {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.15em;
    color: var(--color-terracota);
    margin-top: 4px;
}

.how-step-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.how-step-body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-gray);
}

/* ============================================
   05 — PORTFOLIO
   ============================================ */
.section-portfolio {
    background-color: var(--color-off-white);
}

.portfolio-title {
    margin-bottom: 48px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 42, 74, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.portfolio-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.portfolio-item:hover .portfolio-overlay {
    background-color: rgba(27, 42, 74, 0.4);
}

.portfolio-item:hover .portfolio-label {
    opacity: 1;
}

/* ============================================
   06 — CLIENTES
   ============================================ */
.section-clients {
    background-color: var(--color-white);
    padding: 80px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 60px;
    margin-top: 40px;
    align-items: center;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.client-logo {
    max-width: 100%;
    height: auto;
    max-height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0);
}

/* ============================================
   06 — CONTACTO
   ============================================ */
.section-contact {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.contact-title {
    color: var(--color-white);
    margin-bottom: 48px;
}

.contact-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.btn-cta {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    background-color: var(--color-terracota);
    border: none;
    padding: 16px 32px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #A85D3F;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-navy-dark);
    padding: 60px 0;
    color: var(--color-white);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer .logo-footer {
    width: 320px;
    height: auto;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ANIMACIONES DE SCROLL
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE — TABLET (768-1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 60px;
    }

    .section {
        padding: var(--section-spacing-mobile) 0;
    }

    .section-title {
        font-size: 48px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (<768px)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--padding-mobile);
    }

    .section {
        padding: var(--section-spacing-mobile) 0;
    }

    .section-title {
        font-size: 36px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-tagline {
        font-size: 24px;
        padding: 0 24px;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 24px;
        margin-bottom: 16px;
    }

    .hero-note {
        font-size: 12px;
        padding: 0 24px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 420px;
    }
    
    .logo-footer {
        width: 240px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .contact-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-label {
        font-size: 12px;
    }

    .section-body {
        font-size: 15px;
    }
}
