/*==================================================
    AUTOESCUELA SANABRIA
    Hoja de estilos principal
==================================================*/


/*==================================================
    VARIABLES
==================================================*/

:root{

    --rojo:#e32020;
    --verde:#25D366;
    --texto:#222;
    --gris:#666;
    --blanco:#ffffff;

}


/*==================================================
    GENERALES
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:var(--texto);
    background:var(--blanco);
}


/*==================================================
    HEADER
==================================================*/

.header{

    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);

    width:95%;
    max-width:1400px;

    padding:8px 22px;

    z-index:1000;

    border-radius:18px;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);

    border:1px solid rgba(255,255,255,.15);

    transition:.35s ease;

}

.header.scrolled{

    top:8px;

    background:white;

    border:none;

    box-shadow:0 12px 35px rgba(0,0,0,.12);

}


/* Logo */

.navbar-brand img{

    height:80px;

    transition:.35s ease;

}

.header.scrolled .navbar-brand img{

    height:68px;

}


/* Menú */

.nav-link{

    color:white !important;

    font-size:1rem;

    font-weight:600;

    margin-left:22px;

    position:relative;

    transition:.3s;

}

.header.scrolled .nav-link{

    color:var(--texto) !important;

}

.nav-link::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-5px;

    width:0;

    height:2px;

    background:var(--rojo);

    transition:.3s;

}

.nav-link:hover{

    color:var(--rojo) !important;

}

.nav-link:hover::after{

    width:100%;

}


/*==================================================
    BOTONES
==================================================*/

.btn-danger{

    background:var(--rojo);

    border:none;

}

.btn-success{

    background:var(--verde);

    border:none;

    color:white;

}

.btn-success i{

    margin-right:8px;

    font-size:1.2rem;

}

.hero-buttons{

    display:flex;

    gap:30px;

    margin-top:25px;

}

.hero-buttons .btn{

    width:250px;

    min-height:58px;

    padding:16px 34px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:12px;

    font-weight:600;

    transition:.3s;

}

.btn-outline-light{

    border-radius:12px;

    padding:12px 26px;

}


/*==================================================
    HERO
==================================================*/

.hero{

    min-height:105vh;

    position:relative;

    display:flex;

    align-items:center;

    padding-bottom:50px;

    background-image:url("img/hero.webp");

    background-size:cover;

    background-position:center;

}

.overlay{

    position:absolute;

    inset:0;

    background:

    radial-gradient(

        circle at 70% 20%,

        rgba(0,0,0,.20) 0%,

        rgba(0,0,0,.45) 45%,

        rgba(0,0,0,.65) 100%

    ),

    linear-gradient(

        90deg,

        rgba(0,0,0,.88) 0%,

        rgba(0,0,0,.72) 35%,

        rgba(0,0,0,.35) 70%,

        rgba(0,0,0,.10) 100%

    );

}

.hero-content{

    position:relative;

    z-index:2;

    max-width:650px;

    color:white;

    padding-top:170px;

}

.etiqueta{

    display:inline-block;

    margin-bottom:30px;

    padding:8px 20px;

    border-radius:50px;

    border:1px solid rgba(255,255,255,.5);

    letter-spacing:2px;

    font-size:.85rem;

}

.hero h1{

    font-size:4.4rem;

    font-weight:700;

    line-height:1.1;

    margin-bottom:30px;

    text-shadow:0 4px 25px rgba(0,0,0,.35);

}

.hero h1 span{

    color:var(--rojo);

}

.hero p{

    max-width:580px;

    margin-bottom:50px;

    font-size:1.3rem;

    line-height:1.6;

    color:#f3f3f3;

}


/*==================================================
    SERVICIOS
==================================================*/

.services{

    padding:90px 0;

    background:#f8f9fb;

}

.services-title{

    text-align:center;

    margin-bottom:60px;

}

.services-title h2{

    font-size:2.6rem;

    font-weight:700;

    margin-bottom:15px;

}

.services-title p{

    color:#666;

    font-size:1.15rem;

}

.services-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.service-card{

    background:white;

    padding:40px 30px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.35s;

}

.service-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.service-icon{

    width:90px;

    height:90px;

    margin:0 auto 25px;

    border-radius:50%;

    background:#fff4f4;

    display:flex;

    justify-content:center;

    align-items:center;

}

.service-icon i{

    font-size:2.5rem;

    color:var(--rojo);

}

.service-card h3{

    margin-bottom:18px;

    font-size:1.4rem;

    font-weight:600;

}

.service-card p{

    color:#666;

    line-height:1.7;

}

/*==================================================
    COMPROMETIDOS CON TU FORMACIÓN
==================================================*/

.advantages{

    padding:90px 0;

    background:#ffffff;

}

.advantages-title{

    text-align:center;

    max-width:750px;

    margin:0 auto 60px;

}

.advantages-title h2{

    font-size:2.6rem;

    font-weight:700;

    margin-bottom:18px;

}

.advantages-title p{

    font-size:1.15rem;

    color:var(--gris);

    line-height:1.7;

}

.advantages-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

.advantage-item{

    display:flex;

    align-items:flex-start;

    gap:22px;

    padding:35px;

    background:#fff;

    border-radius:18px;

    border:1px solid #ececec;

    transition:.35s;

}

.advantage-item:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.advantage-icon{

    width:65px;

    height:65px;

    min-width:65px;

    border-radius:50%;

    background:#fff4f4;

    display:flex;

    justify-content:center;

    align-items:center;

}

.advantage-icon i{

    font-size:1.8rem;

    color:var(--rojo);

}

.advantage-text h3{

    font-size:1.3rem;

    margin-bottom:10px;

    font-weight:600;

}

.advantage-text p{

    color:var(--gris);

    line-height:1.7;

    margin:0;

}

/*==================================================
    LLAMADA A LA ACCIÓN
==================================================*/

.cta{

    padding:90px 0;

    background:linear-gradient(135deg,var(--rojo),#b91616);

    color:white;

    text-align:center;

}

.cta h2{

    font-size:2.8rem;

    font-weight:700;

    margin-bottom:20px;

}

.cta p{

    max-width:700px;

    margin:0 auto 40px;

    font-size:1.2rem;

    line-height:1.7;

    color:rgba(255,255,255,.9);

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.cta-buttons .btn{

    min-width:220px;

    min-height:58px;

    border-radius:12px;

    font-weight:600;

    display:flex;

    justify-content:center;

    align-items:center;

    transition:.3s;

}

.cta-buttons .btn-light{

    background:white;

    color:var(--rojo);

    border:none;

}

.cta-buttons .btn-light:hover{

    background:#f2f2f2;

    transform:translateY(-3px);

}

.cta-buttons .btn-success:hover{

    transform:translateY(-3px);

}

.cta-buttons i{

    margin-right:10px;

    font-size:1.2rem;

}


/*==================================================
    OPINIONES
==================================================*/

.reviews{

    padding:90px 0;

    background:#f8f9fb;

}

.reviews-title{

    max-width:750px;

    margin:0 auto 60px;

    text-align:center;

}

.reviews-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:10px 22px;

    margin-bottom:25px;

    border-radius:50px;

    background:white;

    color:var(--texto);

    font-weight:600;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.reviews-badge i{

    color:#4285F4;

    font-size:1.2rem;

}

.reviews-title h2{

    font-size:2.6rem;

    font-weight:700;

    margin-bottom:18px;

}

.reviews-title p{

    color:var(--gris);

    font-size:1.15rem;

    line-height:1.7;

}

.reviews-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.review-card{

    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.35s;

}

.review-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.stars{

    color:#f4b400;

    font-size:1.4rem;

    margin-bottom:20px;

    letter-spacing:3px;

}

.review-text{

    color:var(--texto);

    line-height:1.8;

    font-style:italic;

    margin-bottom:30px;

}

.review-author{

    display:flex;

    align-items:center;

    gap:12px;

    font-weight:600;

    color:var(--gris);

}

.review-author i{

    font-size:2rem;

    color:var(--rojo);

}

.reviews-button{

    margin-top:60px;

    text-align:center;

}

.reviews-button .btn{

    min-width:280px;

    min-height:58px;

    border-radius:12px;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    font-weight:600;

}

/*==================================================
    CONTACTO
==================================================*/

.contact{

    padding:100px 0;

    background:#ffffff;

}

.contact-title{

    text-align:center;

    max-width:700px;

    margin:0 auto 60px;

}

.contact-title h2{

    font-size:2.8rem;

    font-weight:700;

    margin-bottom:20px;

}

.contact-title p{

    font-size:1.15rem;

    color:var(--gris);

    line-height:1.7;

}

.contact-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

.contact-card{

    display:flex;

    align-items:flex-start;

    gap:18px;

    padding:30px;

    border-radius:20px;

    background:white;

    border:1px solid #ececec;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

    transition:.3s;

}

.contact-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.10);

}

.contact-icon{

    width:60px;

    height:60px;

    min-width:60px;

    border-radius:50%;

    background:#fff4f4;

    display:flex;

    justify-content:center;

    align-items:center;

}

.contact-icon i{

    font-size:1.5rem;

    color:var(--rojo);

}

.contact-card h3{

    margin-bottom:8px;

    font-size:1.2rem;

    font-weight:600;

}

.contact-card p{

    margin:0;

    line-height:1.7;

    color:var(--gris);

}

.contact-card a{

    color:var(--texto);

    text-decoration:none;

}

.contact-card a:hover{

    color:var(--rojo);

}

/*==================================================
    IMAGEN FINAL
==================================================*/

.closing-image{

    position:relative;

    height:70vh;

    min-height:500px;

    overflow:hidden;

}

.closing-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}

.closing-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.25),
        rgba(0,0,0,.55)
    );

}

.closing-content{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

    z-index:2;

    padding:20px;

}

.closing-content h2{

    font-size:4rem;

    font-weight:700;

    margin-bottom:25px;

    text-shadow:0 8px 30px rgba(0,0,0,.45);

}

.closing-content p{

    max-width:650px;

    font-size:1.3rem;

    line-height:1.8;

    margin-bottom:40px;

    color:rgba(255,255,255,.95);

}

.closing-content .btn{

    min-width:260px;

    height:58px;

    border-radius:12px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:600;

    box-shadow:0 15px 35px rgba(0,0,0,.25);

}

.closing-content .btn i{

    margin-right:10px;

}

/*==================================================
    FOOTER
==================================================*/

.footer{

    background:#1f2329;

    color:white;

    text-align:center;

    padding:70px 20px 35px;

}

.footer-logo{

    height:90px;

    margin-bottom:25px;

}

.footer h3{

    font-size:2rem;

    font-weight:700;

    margin-bottom:12px;

}

.footer-text{

    color:rgba(255,255,255,.75);

    margin-bottom:18px;

    font-size:1.05rem;

}

.footer-address{

    color:rgba(255,255,255,.85);

    margin-bottom:35px;

}

.footer-address i{

    color:#e32020;

    margin-right:8px;

}

.footer-links{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:30px;

}

.footer-links a{

    color:white;

    text-decoration:none;

    transition:.3s;

}

.footer-links a:hover{

    color:#e32020;

}

.footer-copy{

    padding-top:25px;

    border-top:1px solid rgba(255,255,255,.12);

    color:rgba(255,255,255,.55);

    font-size:.9rem;

}

.footer-slogan{

    font-size:1.15rem;

    font-style:italic;

    color:rgba(255,255,255,.85);

    margin-bottom:20px;

}



/*==================================================
    RESPONSIVE
==================================================*/

@media (max-width:992px){

.header{

    top:0;

    width:100%;

    padding:12px 18px;

    border-radius:0;

}

.navbar-brand img{

    height:55px;

}

.header.scrolled .navbar-brand img{

    height:55px;

}

.hero{

    min-height:105vh;

    background-position:60% center;

    background-attachment:scroll;

}

.hero-content{

    padding-top:20px;

}

.hero h1{

    font-size:2.8rem;

    line-height:1.05;

}

.hero p{

    font-size:1.25rem;

}

.hero-buttons{

    flex-direction:column;

    align-items:center;

    gap:15px;

    margin-top:20px;

}

.hero-buttons .btn{

    width:85%;

    max-width:320px;

}

.services{

    padding:70px 0;

}

.services-title h2{

    font-size:2rem;

}

.services-grid{

    grid-template-columns:1fr;

    gap:25px;

}

}

.advantages{

    padding:70px 0;

}

.advantages-title h2{

    font-size:2rem;

}

.advantages-grid{

    grid-template-columns:1fr;

}

.advantage-item{

    padding:28px;

}

.cta{

    padding:70px 20px;

}

.cta h2{

    font-size:2.2rem;

}

.cta p{

    font-size:1.05rem;

}

.cta-buttons{

    flex-direction:column;

    align-items:center;

}

.cta-buttons .btn{

    width:90%;

    max-width:320px;

}

.reviews{

    padding:70px 0;

}

.reviews-title h2{

    font-size:2rem;

}

.reviews-grid{

    grid-template-columns:1fr;

    gap:25px;

}

.review-card{

    padding:28px;

}

.reviews-button .btn{

    width:90%;

    max-width:320px;

}

/* CONTACTO */

.contact{

    padding:70px 0;

}

.contact-title h2{

    font-size:2rem;

}

.contact-grid{

    grid-template-columns:1fr;

    gap:35px;

}

.contact-image{

    min-height:420px;

}

.location-card{

    position:absolute;

    left:20px;

    right:20px;

    top:20px;

    width:auto;

    padding:22px;

}

.image-quote{

    left:20px;

    bottom:20px;

    font-size:1.5rem;

}

.contact-info .btn{

    width:100%;

}

/* CONTACTO */

.contact{

    padding:70px 0;

}

.contact-title h2{

    font-size:2rem;

}

.contact-grid{

    grid-template-columns:1fr;

}

.contact-card{

    padding:24px;

}


/* FOTO FINAL */

.closing-image{

    height:60vh;

    min-height:420px;

}

.closing-content h2{

    font-size:2.4rem;

}

.closing-content p{

    font-size:1.05rem;

}

.closing-content .btn{

    width:90%;

    max-width:320px;

}

.footer{

    padding:60px 20px 30px;

}

.footer-logo{

    height:70px;

}

.footer h3{

    font-size:1.6rem;

}

.footer-links{

    flex-direction:column;

    gap:10px;

}

.footer-links span{

    display:none;

}


