/*==================================================
        DAVID GÓMEZ CANDÓN
        USO EFICIENTE DEL AGUA
==================================================*/


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

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

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

    background:#ffffff;

    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);

}


/*=========================
CONTENEDOR
=========================*/

.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;

}

.hero img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}

.overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        90deg,

        rgba(8,32,58,.82),

        rgba(8,32,58,.42),

        rgba(8,32,58,.08)

    );

}

.hero-content{

    position:absolute;

    top:50%;

    left:9%;

    transform:translateY(-50%);

    color:white;

    max-width:650px;

}

.eyebrow{

    text-transform:uppercase;

    letter-spacing:4px;

    color:var(--gold);

    font-size:.82rem;

    margin-bottom:20px;

}

.hero h1{

    font-family:'Playfair Display',serif;

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

    line-height:1.05;

}

.gold-line{

    width:120px;

    height:3px;

    background:var(--gold);

    margin:35px 0;

}

.hero-text{

    font-size:1.22rem;

    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.8rem);

    line-height:1.2;

    margin-bottom:35px;

}
/*==================================================
                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:repeat(2,1fr);

    gap:70px;

}

.intro-grid div{

    display:flex;

    gap:25px;

    align-items:flex-start;

}

.intro-grid svg{

    width:48px;

    height:48px;

    color:var(--gold);

    flex-shrink:0;

    margin-top:8px;

}

.intro-grid p{

    color:var(--text);

    font-size:1.08rem;

    line-height:2;

    text-align:justify;

}


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

.foto-grande{

    padding:70px 0 140px;

    background:#ffffff;

}

.foto-grande img{

    width:min(95%,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 riego localizado y monitorización del estado hídrico.";

    display:block;

    width:min(90%,900px);

    margin:28px auto 0;

    text-align:center;

    color:#7A8694;

    font-size:.95rem;

}


/*==================================================
        EL AGUA COMO RECURSO ESTRATÉGICO
==================================================*/

.concepto{

    background:var(--light);

}

.concepto-grid{

    display:grid;

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

    gap:90px;

    align-items:center;

}

.concepto-texto h2{

    max-width:700px;

}

.concepto-texto p{

    font-size:1.08rem;

    line-height:2;

    color:var(--text);

    margin-bottom:28px;

    text-align:justify;

}

.concepto-texto p:last-child{

    margin-bottom:0;

}


/*==================================================
        ILUSTRACIÓN CIENTÍFICA
==================================================*/

.concepto-imagen{

    display:flex;

    justify-content:center;

    align-items:center;

}

.concepto-imagen img{

    width:100%;

    max-width:560px;

    transition:.35s;

}

.concepto-imagen img:hover{

    transform:scale(1.03);

}
/*==================================================
            ¿QUÉ SE MONITORIZA?
==================================================*/

.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:56px;

    height:56px;

    color:var(--gold);

    margin-bottom:22px;

}

.variables h3{

    font-family:'Playfair Display',serif;

    color:var(--blue);

    font-size:1.4rem;

    margin-bottom:16px;

}

.variables p{

    color:var(--text);

    line-height:1.9;

}


/*==================================================
            BANDA CIENTÍFICA
==================================================*/

.datos{

    background:var(--blue);

    color:white;

}

.datos-title{

    text-align:center;

    margin-bottom:70px;

}

.datos-title h2{

    color:white;

}

.datos-title .gold-line{

    margin:30px auto 0;

}

.datos-grid{

    display:grid;

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

    gap:45px;

}

.dato-card{

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

    border-radius:24px;

    overflow:hidden;

    backdrop-filter:blur(6px);

    transition:.35s;

    box-shadow:0 18px 40px rgba(0,0,0,.25);

}

.dato-card:hover{

    transform:translateY(-8px);

}

.dato-card img{

    width:100%;

    height:340px;

    object-fit:cover;

    display:block;

}

.dato-info{

    padding:35px;

}

.dato-info h3{

    font-family:'Playfair Display',serif;

    font-size:1.8rem;

    color:white;

    margin-bottom:15px;

}

.dato-info p{

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

    line-height:1.9;

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

.aplicaciones{

    background:#ffffff;

}

.aplicaciones h2{

    text-align:center;

}

.aplicaciones-grid{

    display:grid;

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

    gap:45px;

    margin-top:70px;

}

.aplicaciones article{

    display:flex;

    gap:30px;

    align-items:flex-start;

    padding:35px;

    border-radius:22px;

    background:#F7F9FC;

    transition:.35s;

}

.aplicaciones article:hover{

    background:#ffffff;

    transform:translateY(-8px);

    box-shadow:0 18px 45px rgba(0,0,0,.10);

}

.aplicaciones svg{

    width:52px;

    height:52px;

    color:var(--gold);

    flex-shrink:0;

}

.aplicaciones h3{

    font-family:'Playfair Display',serif;

    color:var(--blue);

    font-size:1.45rem;

    margin-bottom:12px;

}

.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:18px 42px;

    border-radius:60px;

    background:var(--blue);

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

    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:18px;

}

.footer-social a{

    width:52px;

    height:52px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

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

    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{

        grid-template-columns:1fr;

        gap:60px;

    }

    .variables-grid{

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

    }

    .datos-grid{

        grid-template-columns:1fr;

    }

    .aplicaciones-grid{

        grid-template-columns:1fr;

    }

}


@media(max-width:768px){

    nav{

        display:none;

    }

    .hero{

        min-height:650px;

    }

    .hero-content{

        left:7%;

        right:7%;

        max-width:none;

    }

    .hero h1{

        font-size:3.6rem;

    }

    .hero-text{

        font-size:1.08rem;

    }

    section{

        padding:90px 0;

    }

    .foto-grande img{

        height:420px;

        min-height:auto;

    }

    .variables-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;

    }

}