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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

/* =========================
   VARIABLES
========================= */
:root {
  --header-height: 90px;
  --max-width: 1100px;
  --primary: #e6007e;
  --accent: #bfff00;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.page {
  padding-top: var(--header-height);
}

/* 🔥 FIX REAL: solo anchors, NO todas las sections */
[id] {
  scroll-margin-top: calc(var(--header-height) + 10px);
}
/* =========================
   SELECTOR WEBINARIOS / TALLERES
========================= */

.selector-tipo{
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:10px; /* 🔥 pegado al título */
}

.selector-btn{
  padding:12px 22px;
  background:#ff00aa; /* fucsia */
  color:white;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
  transition:0.25s;
}

.selector-btn:hover{
  background:#32ff00; /* lima */
  color:black;
}
/* =========================
   HERO
========================= */
.info-hero {
  padding: 40px 20px 5px; /* 🔥 menos espacio abajo */
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-hero h1 {
  font-size: 40px;
  margin-bottom: 1px;
}

.info-hero p {
  font-size: 18px;
  margin-bottom: 10px; /* 🔥 antes 25px */
  color: #555;
}

/* 🔥 SOLO el bloque después del hero */
.page .home-section:first-of-type{
  margin-top: 10px; /* 🔥 más pegado aún */
}

/* =========================
   SECCIONES
========================= */
.home-section {
  max-width: var(--max-width);
  margin: 100px auto;
  padding: 0 20px;

  /* 🔥 evita saltos por reflow en móvil */
  overflow-anchor: none;
}

.home-section h2 {
  font-size: 30px;
  margin-bottom: 40px;
  text-align: center;
}

/* =========================
   BOTÓN
========================= */
.btn {
  padding: 12px 22px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
  font-weight: bold;
}

.btn:hover {
  background: var(--accent);
  color: black;
}

/* =========================
   GRID
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* =========================
   CARDS
========================= */
.profile-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.profile-card h3 {
  margin: 20px 20px 10px;
  font-size: 20px;
}

.profile-card p {
  margin: 0 20px 20px;
  color: #555;
  font-size: 15px;
  flex-grow: 1;
  text-align: center;
}

.profile-card .btn {
  margin: 0 20px 20px;
  text-align: center;
}

/* =========================
   LISTAS
========================= */
.profile-card ul {
  text-align: left;
  padding: 0 20px 20px;
}

.profile-card li {
  margin-bottom: 8px;
}

/* =========================
   TESTIMONIOS
========================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-style: italic;
  text-align: left;
}

/* =========================
   CTA
========================= */
.cta-section {
  padding: 80px 20px;
  background: #fafafa;
  text-align: center;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 20px;
}

/* =========================
   FORMULARIO
========================= */
.contact-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  :root {
    --header-height: 110px;
  }

  .services-grid,
  .profile-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .info-hero h1 {
    font-size: 28px;
  }

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

  /* 🔥 refuerzo anti-salto en móvil */
  .home-section {
    overflow-anchor: none;
  }
}

/* =========================
   CENTRADO GLOBAL LANDING
========================= */
.page h1,
.page h2,
.page p {
  text-align: center;
}
@media(max-width:768px){

  .selector-tipo{
    flex-direction:column;
    align-items:center;
  }

  .selector-btn{
    width:80%;
    text-align:center;
  }

}