/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f5f7fa;
    color:#222;
    overflow-x:hidden;
    line-height:1.5;
}

/* =========================================
   BASE
========================================= */

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================================
   HEADER
========================================= */

.header{
    width:100%;
    background:#fff;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
    gap:20px;
}

.logo img{
    width:180px;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.nav-links a{
    color:#222;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.nav-links a:hover{
    color:#d62828;
}

.btn-login{
    background:#0b3c5d;
    color:#fff;
    padding:14px 24px;
    border-radius:10px;
    font-weight:700;
    transition:.3s;
}

.btn-login:hover{
    background:#082b42;
}

/* =========================================
   HERO
========================================= */

.hero{
    min-height:70vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:80px 20px;

    background:
        linear-gradient(rgba(11,60,93,.72), rgba(11,60,93,.72)),
        url('../img/hero.jpg');

    background-size:cover;
    background-position:center;
}

.hero-content{
    background:#fff;
    padding:50px;
    border-radius:20px;

    width:100%;
    max-width:760px;

    text-align:center;

    box-shadow:0 10px 35px rgba(0,0,0,.15);

    position:relative;
    z-index:2;
}

.hero-content h1{
    color:#0b3c5d;
    font-size:clamp(38px,5vw,64px);
    line-height:1.1;
    margin-bottom:20px;
    font-weight:800;
}

.hero-content p{
    color:#555;
    font-size:20px;
    margin-bottom:35px;
}

/* =========================================
   BOTONES
========================================= */

.btn{
    display:inline-block;
    padding:15px 28px;
    border-radius:10px;
    font-weight:700;
    transition:.3s;
    margin:5px;
}

.btn-primary{
    background:#d62828;
    color:#fff;
}

.btn-primary:hover{
    background:#b91c1c;
    transform:translateY(-2px);
}

.btn-secondary{
    background:#0b3c5d;
    color:#fff;
}

.btn-secondary:hover{
    background:#082b42;
    transform:translateY(-2px);
}

/* =========================================
   SECCIONES
========================================= */

.section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    font-size:38px;
    margin-bottom:50px;
    color:#0b3c5d;
}

/* =========================================
   GRID
========================================= */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

/* =========================================
   CARDS
========================================= */

.card{
    background:#fff;
    border-radius:16px;
    padding:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
}

.card h3{
    margin-bottom:15px;
    color:#0b3c5d;
}

/* =========================================
   PRODUCTOS
========================================= */

.producto{
    background:#fff;
    border-radius:14px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.producto img{
    border-radius:12px;
    margin-bottom:15px;
}

.producto h3{
    margin-bottom:10px;
}

/* =========================================
   BUSCADOR
========================================= */

.buscador{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.buscador input{
    flex:1;
    min-width:240px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
}

.buscador button{
    padding:15px 25px;
    border:none;
    border-radius:10px;
    background:#d62828;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

/* =========================================
   GALERIA
========================================= */

.galeria{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.galeria img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:14px;
    transition:.3s;
}

.galeria img:hover{
    transform:scale(1.03);
}

/* =========================================
   VIDEO
========================================= */

.video-container{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    border-radius:16px;
    overflow:hidden;
}

.video-container iframe,
.video-container video{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
}

/* =========================================
   CONTACTO
========================================= */

.contacto-box{
    max-width:700px;
    margin:auto;
    background:#fff;
    padding:40px;
    border-radius:18px;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.form-contacto{
    display:flex;
    flex-direction:column;
}

.form-contacto input,
.form-contacto textarea{
    width:100%;
    padding:18px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
}

.form-contacto textarea{
    min-height:180px;
}

/* =========================================
   REDES
========================================= */

.social-icons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

/* =========================================
   FOOTER
========================================= */

.footer{
    background:#111;
    color:#fff;
    text-align:center;
    padding:40px 20px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:768px){

    .nav{
        flex-direction:column;
        text-align:center;
    }

    .logo img{
        width:150px;
    }

    .nav-links{
        justify-content:center;
        gap:12px;
    }

    .nav-links a{
        font-size:14px;
    }

    .hero{
        min-height:60vh;
        padding:50px 20px;
    }

    .hero-content{
        padding:30px 25px;
    }

    .hero-content h1{
        font-size:38px;
    }

    .hero-content p{
        font-size:17px;
    }

    .btn{
        width:100%;
        max-width:320px;
    }

    .section{
        padding:60px 0;
    }

    .section-title{
        font-size:30px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .galeria{
        grid-template-columns:1fr;
    }

    .buscador{
        flex-direction:column;
    }

    .buscador input{
        width:100%;
        min-width:100%;
    }

    .buscador button{
        width:100%;
    }

    .contacto-box{
        padding:25px;
    }

}