:root {
    --primary: #0d6efd;
    --dark: #1e1e1e;
    --gray: #6c757d;
    --bg: #f8f9fa;
}

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


/* Botones */
.cta,
.course-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover,
.course-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Cards */
.card,
.course-card,
.trust-box,
.testimonio {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.course-card:hover,
.trust-box:hover,
.testimonio:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(90, 88, 88, 0.05);
    z-index: 10;
    /* background-color: var(--primary); */
  background-image:
  linear-gradient(rgba(90, 88, 88, 0.6), rgba(53, 52, 52, 0.6)),
  url("../imgs/header.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.logo img {
    width: 58%;
    height: auto;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav a {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: white;
}

/* HERO */
.hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    padding-top: 6rem;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.hero p {
    margin: 1rem 0;
    color: var(--gray);
    font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,.3);
  z-index: 999;
}

.whatsapp-float svg {
  width: 32px;
}

.cta {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
}

.hero-img {
    width: 100%;
    border-radius: 16px;
    min-height: 300px;
    background: url("../imgs/conductor.png") center / cover no-repeat;
}

/* SERVICIOS */
.services {
    /* background: var(--bg); */
    border-radius: 24px;
    background-image: linear-gradient(rgba(209, 207, 207, 0.6), rgba(0, 0, 0, 0.6)),
        url("../imgs/auto-fondo.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.services h2 {
    color: white;
    font-size: 2.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

.card h3 {
    margin-bottom: .5rem;
}

.card:hover {
    transform: translateY(-6px);
    transition: .3s ease;
}
/* CURSOS */
.courses {
  text-align: center;
}

.courses h2 {
  font-size: 2.4rem;
}

.courses-subtitle {
  margin-top: .5rem;
  color: var(--gray);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.course-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
 border: 2px solid transparent;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,.1);
}

.course-card h3 {
  margin-bottom: .5rem;
}

.course-card ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.course-card li {
  margin-bottom: .5rem;
}

.course-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Curso destacado */
.course-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
   box-shadow: 0 10px 30px rgba(13,110,253,.25);
}


/* CONFIANZA */
.trust {
    text-align: center;
}

.trust h2 {
    color: black;
    font-size: 2.4rem;
    text-shadow: 0 2px 8px rgba(133, 132, 132, 0.6);
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.trust-box {
    max-width: 220px;
}
.testimonios {
  text-align: center;
  padding: 4rem 1.5rem;
}

.testimonios h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonio {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
  font-size: 0.95rem;
}

.testimonio p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonio strong {
  display: block;
  color: var(--dark);
}

.testimonio span {
  font-size: 0.85rem;
  color: var(--gray);
}

.ubicacion {
  padding: 4rem 1.5rem;
}

.ubicacion h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.ubicacion iframe {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  border: none;
}


/* CTA FINAL */
.cta-final {
    max-width: 80%;
    margin: 4rem auto;
    background: rgb(254, 191, 74);
    color: #fff;
    text-align: center;
    border-radius: 24px;
    padding: 4rem 2rem;
}

.cta-final a {
    background: var(--primary);
    color: white;
    margin-top: 1.5rem;
    display: inline-block;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    font-size: .9rem;
    color: var(--gray);
}


.main-footer small {
    display: block;
    margin-top: 10px;
    color: #aaa;
    font-size: 0.8rem;
}

.main-footer .author {
    color: #ffcc00;
    font-weight: bold;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  z-index: 1000;
  transition: transform .3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}




@media (max-width: 768px) {
  
.hero {
    padding-top: 3rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-img {
    min-height: 220px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    padding: 1.5rem;
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .testimonio {
    margin-bottom: 1.5rem;
  }

    /* SERVICIOS */
    .services {
        background: var(--bg);
        border-radius: 24px;
        background-image: none;

    }
    .services h2 {
        color: var(--dark);
        text-shadow: none;
    }

    .ubicacion iframe {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 0;
}
}