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

:root{
  --red: #A30E10;
}

body {
    font-family: 'Roboto',sans-serif;
    color: #222;
    line-height: 1.6;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

section {
    padding: 90px 0;
    position: relative;
}

section:first-of-type {
    padding-top: 0;
    padding-bottom: 0;
}

/* TYPO */
h1,
h2,
h3 {
    font-family: 'Montserrat',sans-serif;
    line-height: 2.9rem;
}

h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.section-intro {
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
}
.section-intro-2 {
    color: #555;
    max-width: 700px;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header a {
    text-decoration: none;
}

.topbar {
    background: var(--red);
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 20px; 
    padding: 6px 15px;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    font-weight: 800;
    color: var(--red);
    font-size: 22px;
}

.logo img{
    max-width: 160px;
}

.logo, .logo img { cursor: pointer; }

/* NAV */
nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 12px;
    font-weight: 600;
    color: #000;
    transition: 0.3s;
    cursor: pointer;
}

nav a.active {
    color: var(--red);
}

nav a:hover {
    color: var(--red);
}

/* CTA */
.cta-btn {
    background: var(--red);
    color: #fff;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}
.cta-btn:hover {
    background: #000;
}

/* BURGER */
.burger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* HERO */
.hero {
    /* ajustado al header real */
}

.swiper-slide {
    height: 85vh;
    position: relative;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content .container {
    max-width: 650px;
}

.hero h1,
.hero h2,
.hero h3 {
    font-size: 46px;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
}

.hero button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 25px;
}

/* CARD */
.card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    background-color: #fff;
}

.card i {
    font-size: 32px;
    color: var(--red);
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* BG */
.bg-light {
    background: #f7f7f7;
}
.text-center {
    text-align: center;
}
/* IMAGES */
.img-cover {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

/* FAQ */
.faq-item {
    margin-bottom: 25px;
}

.faq-item h3 {
    color: var(--red);
    font-size: 1rem;
    line-height: 1.4rem;
    margin-bottom: 5px;
}

/* CONTACT */
.contact {
    background: var(--red);
    color: #fff;
}

.form-box {
    max-width: 500px;
    margin: auto;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: none;
    border-radius: 6px;
}

button.submit {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 6px;
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 30px;
}

/* MOBILE */
@media(max-width:768px) {

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 260px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding-top: 30px;
        transition: 0.3s;
    }

    nav.active {
        left: 0;
    }

    nav a {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }
    .cta-btn {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }

    section {
        padding: 70px 0;
    }

}
/* Contact grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: 25% 1fr; /* contact-info 25%, map 75% */
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}
.contact-info .contact-list {
    list-style: none;
    color: #fff;
    padding: 0;
    margin: 0;
}
.contact-info .contact-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.contact-info .contact-list li i {
    font-size: 18px;
    color: #fff;
    width: 22px;
}
.contact-info a { color: #fff; text-decoration: none; cursor: pointer; }
.contact-form .form-box { background: transparent; }
.contact-map .map-wrap { background: transparent; }
@media(max-width:900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { order: 2; }
    .contact-form { order: 1; }
    .contact-map { order: 3; }
}
footer a { cursor: pointer; }

/* Animaciones de entrada */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(18px);
}
.animate.animate-in {
    animation: fadeUp 560ms cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--delay,0ms);
}

/* Ajustes específicos */
.animate.img-cover.animate-in {
    transform-origin: center;
}
.animate.card.animate-in {
    will-change: transform, opacity;
}

/* Modals */
.modal[aria-hidden="true"] {
    display: none;
}
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 4000;
    padding: 20px;
}
.modal-content {
    background: #fff;
    color: #111;
    max-width: 720px;
    width: 100%;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* Ensure links that open modals show pointer */
[data-modal-target] { cursor: pointer; }

/* Footer two columns */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}
.footer-grid .footer-left a {
    color: #fff;
    text-decoration: underline;
    margin-right: 12px;
}
.footer-right { color: #fff; }
#cursos{
  background: url('../img/autoescueladeblas_cap.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media(max-width:600px) {
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-grid .footer-left a { display: inline-block; margin: 6px 8px; }
    #cursos{min-height: auto;}
}

