/*==================================================
        DAVID GÓMEZ CANDÓN
        FENOTIPADO VEGETAL
==================================================*/


/*=========================
RESET
=========================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:#fff;

    color:#32475B;

    line-height:1.9;

    overflow-x:hidden;

}


/*=========================
VARIABLES
=========================*/

:root{

    --blue:#08203A;

    --gold:#C9A227;

    --white:#ffffff;

    --light:#F7F9FC;

    --text:#495B6D;

    --shadow:0 20px 55px rgba(0,0,0,.12);

}


/*=========================
CONTENEDORES
=========================*/

.container{

    width:min(92%,1280px);

    margin:auto;

}


/*=========================
HEADER
=========================*/

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:82px;

    background:rgba(8,32,58,.96);

    backdrop-filter:blur(10px);

    z-index:9999;

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:100%;

}

.logo{

    display:flex;

    align-items:center;

    gap:18px;

    color:white;

    text-decoration:none;

}

.logo-dg{

    font-family:'Playfair Display',serif;

    font-size:2.4rem;

    color:var(--gold);

}

.logo-text h2{

    font-size:1rem;

    letter-spacing:2px;

    font-weight:600;

}

.logo-text p{

    opacity:.75;

    font-size:.82rem;

}

nav ul{

    display:flex;

    list-style:none;

    gap:42px;

}

nav a{

    color:white;

    text-decoration:none;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:var(--gold);

}

nav a.activo{

    color:var(--gold);

}


/*=========================
HERO
=========================*/

.hero{

    position:relative;

    height:100vh;

    min-height:850px;

    overflow:hidden;

    background:var(--blue);

}

.hero img{

    position:absolute;

    top:0;

    right:0;

    width:58%;

    height:100%;

    object-fit:cover;

    object-position:center 58%;

    display:block;

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        var(--blue) 0%,
        var(--blue) 38%,
        rgba(8,32,58,.92) 48%,
        rgba(8,32,58,.38) 66%,
        rgba(8,32,58,.06) 100%
    );

}

.hero-content{

    position:absolute;

    top:50%;

    left:9%;

    transform:translateY(-50%);

    color:white;

    max-width:590px;

}

.eyebrow{

    letter-spacing:4px;

    text-transform:uppercase;

    color:var(--gold);

    font-size:.8rem;

    margin-bottom:18px;

}

.hero h1{

    font-family:'Playfair Display',serif;

    font-size:clamp(4rem,8vw,6.5rem);

    line-height:1.05;

}

.gold-line{

    width:120px;

    height:3px;

    background:var(--gold);

    margin:35px 0;

}

.hero-text{

    font-size:1.25rem;

    max-width:620px;

    line-height:1.9;

}


/*=========================
SECCIONES
=========================*/

section{

    padding:140px 0;

}

h2{

    font-family:'Playfair Display',serif;

    color:var(--blue);

    font-size:clamp(2.4rem,5vw,3.7rem);

    margin-bottom:35px;

    line-height:1.2;

}
/*==================================================
                INTRODUCCIÓN
==================================================*/

.intro{

    background:#ffffff;

}

.intro-title{

    text-align:center;

    margin-bottom:70px;

}

.intro-title .gold-line{

    margin:25px auto 0;

}

.intro-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:start;

}

.intro-grid p{

    font-size:1.12rem;

    color:var(--text);

    line-height:2;

    text-align:justify;

}


/*==================================================
            FOTOGRAFÍA PANORÁMICA
==================================================*/

.foto-grande{

    padding:60px 0 140px;

    background:#fff;

}

.foto-grande img{

    width:min(94%,1500px);

    height:78vh;

    min-height:560px;

    display:block;

    margin:auto;

    object-fit:cover;

    border-radius:28px;

    box-shadow:var(--shadow);

    transition:.45s;

}

.foto-grande img:hover{

    transform:scale(1.02);

}

.foto-grande::after{

    content:"Ensayo experimental de fenotipado en condiciones de campo.";

    display:block;

    width:min(88%,900px);

    margin:30px auto 0;

    color:#7A8694;

    font-size:.95rem;

    line-height:1.8;

}


/*==================================================
        ¿QUÉ ES EL FENOTIPADO?
==================================================*/

.concepto{

    background:var(--light);

}

.concepto-grid{

    display:grid;

    grid-template-columns:1.2fr .8fr;

    gap:90px;

    align-items:center;

}

.concepto-texto h2{

    max-width:680px;

}

.concepto-texto p{

    font-size:1.08rem;

    color:var(--text);

    margin-bottom:28px;

    line-height:2;

    text-align:justify;

}

.concepto-texto p:last-child{

    margin-bottom:0;

}


/*==================================================
        ILUSTRACIÓN
==================================================*/

.concepto-imagen{

    display:flex;

    justify-content:center;

    align-items:center;

}

.concepto-imagen img{

    width:100%;

    max-width:560px;

    transition:.4s;

}

.concepto-imagen img:hover{

    transform:scale(1.03);

}
/*==================================================
            VARIABLES
==================================================*/

.variables{

    background:#ffffff;

}

.variables h2{

    text-align:center;

}

.centro{

    margin:30px auto 70px;

}

.variables-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.variables article{

    background:white;

    padding:45px 35px;

    border-radius:22px;

    text-align:center;

    box-shadow:0 12px 35px rgba(0,0,0,.06);

    transition:.35s;

    border-top:4px solid transparent;

}

.variables article:hover{

    transform:translateY(-8px);

    border-top:4px solid var(--gold);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.variables svg{

    width:54px;

    height:54px;

    color:var(--gold);

    margin-bottom:25px;

}

.variables h3{

    font-family:'Playfair Display',serif;

    color:var(--blue);

    margin-bottom:15px;

    font-size:1.4rem;

}

.variables p{

    color:var(--text);

    line-height:1.9;

}


/*==================================================
        BANDA AZUL
==================================================*/

.datos{

    background:var(--blue);

    color:white;

}

.datos-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:90px;

    align-items:center;

}

.datos .eyebrow{

    color:#E6C35A;

}

.datos h2{

    color:white;

}

.datos p{

    color:rgba(255,255,255,.88);

    line-height:2;

    margin-bottom:28px;

}

.datos p:last-child{

    margin-bottom:0;

}


/*==================================================
        IMÁGENES CIENTÍFICAS
==================================================*/

.datos-imagenes{

    display:grid;

    gap:35px;

}

.datos-imagenes img{

    width:100%;

    border-radius:22px;

    box-shadow:0 20px 45px rgba(0,0,0,.35);

    transition:.4s;

}

.datos-imagenes img:hover{

    transform:translateY(-6px) scale(1.02);

}
/*==================================================
                APLICACIONES
==================================================*/

.aplicaciones{

    background:#ffffff;

}

.aplicaciones h2{

    text-align:center;

}

.aplicaciones-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:35px;

    margin-top:70px;

}

.aplicaciones article{

    background:var(--light);

    border-radius:24px;

    padding:45px 35px;

    text-align:center;

    transition:.35s;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.aplicaciones article:hover{

    transform:translateY(-10px);

    background:white;

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.aplicaciones svg{

    width:60px;

    height:60px;

    color:var(--gold);

    margin-bottom:25px;

}

.aplicaciones h3{

    font-family:'Playfair Display',serif;

    color:var(--blue);

    margin-bottom:18px;

    font-size:1.45rem;

}

.aplicaciones p{

    color:var(--text);

    line-height:1.9;

}


/*==================================================
                BOTÓN VOLVER
==================================================*/

.volver{

    background:var(--light);

    text-align:center;

    padding:120px 0;

}

.btn-volver{

    display:inline-flex;

    align-items:center;

    gap:15px;

    padding:20px 45px;

    background:var(--blue);

    color:white;

    text-decoration:none;

    border-radius:60px;

    transition:.35s;

    font-weight:600;

    letter-spacing:.5px;

    box-shadow:0 15px 35px rgba(8,32,58,.18);

}

.btn-volver:hover{

    background:var(--gold);

    color:var(--blue);

    transform:translateY(-5px);

}

.btn-volver svg{

    width:22px;

    height:22px;

}


/*==================================================
                    FOOTER
==================================================*/

footer{

    background:var(--blue);

    color:white;

    padding:70px 0;

}

.footer-grid{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:50px;

}

.footer-logo{

    display:flex;

    align-items:center;

    gap:20px;

}

.footer-logo .logo-dg{

    font-size:3rem;

    color:var(--gold);

}

.footer-logo h3{

    font-family:'Playfair Display',serif;

    margin-bottom:8px;

}

.footer-logo p{

    opacity:.8;

}

.footer-social{

    display:flex;

    gap:20px;

}

.footer-social a{

    width:52px;

    height:52px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    transition:.3s;

}

.footer-social a:hover{

    background:var(--gold);

    color:var(--blue);

}

.footer-social svg{

    width:22px;

    height:22px;

}


/*==================================================
                RESPONSIVE
==================================================*/

@media (max-width:1100px){

    .intro-grid,
    .concepto-grid,
    .datos-grid{

        grid-template-columns:1fr;

        gap:60px;

    }

    .aplicaciones-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .variables-grid{

        grid-template-columns:repeat(2,1fr);

    }

}


@media (max-width:768px){

    nav{

        display:none;

    }

    .hero{

        min-height:650px;

    }

    .hero img{

        width:100%;

        object-position:center 58%;

    }

    .overlay{

        background:linear-gradient(90deg,rgba(8,32,58,.86),rgba(8,32,58,.62));

    }

    .hero-content{

        left:7%;

        right:7%;

        max-width:none;

    }

    .hero h1{

        font-size:3.6rem;

    }

    .hero-text{

        font-size:1.1rem;

    }

    section{

        padding:90px 0;

    }

    .foto-grande img{

        height:420px;

        min-height:auto;

    }

    .variables-grid{

        grid-template-columns:1fr;

    }

    .aplicaciones-grid{

        grid-template-columns:1fr;

    }

    .footer-grid{

        flex-direction:column;

        text-align:center;

    }

}


@media (max-width:480px){

    .hero h1{

        font-size:2.8rem;

    }

    .gold-line{

        width:90px;

    }

    .btn-volver{

        width:100%;

        justify-content:center;

    }

}
