/* =========================================================
   Brote Desarrollo Humano — CSS BÁSICO (solo estructura)
   Sin colores de marca / diseño final todavía.
   Los comentarios "DISEÑO:" marcan dónde va a entrar la
   identidad visual en la siguiente etapa.
   ========================================================= */

:root{
  --ink: #222;
  --gray-700: #444;
  --gray-500: #767676;
  --gray-300: #ccc;
  --gray-100: #f2f2f2;
  --white: #fff;

  --container: 1100px;
  --pad-inline: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(2.5rem, 5vw, 4.5rem);
  --radius: 8px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
ul, ol{ margin: 0; padding: 0; }
h1, h2, h3, h4{ margin: 0 0 .5em; line-height: 1.25; }
p{ margin: 0 0 1em; }

.wrap{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus{ left: 0; }

/* =========================================================
   Botones (estructura genérica; DISEÑO: colores de marca)
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--white);
  color: var(--ink);
}
.btn-primary{
  /* DISEÑO: color de marca principal (fucsia/amarillo a definir) */
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-300);
}
.btn-sm{ padding: .5rem 1rem; font-size: .85rem; }
.btn-block{ width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  border-bottom: 1px solid var(--gray-300);
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #403f3f;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-top-transparent{
  background: transparent;
  border-bottom-color: transparent;
}
main{ padding-top: var(--header-height, 69px); }
.hero{ margin-top: calc(-1 * var(--header-height, 69px)); }
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .85rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}
.brand-mark{ height: 60px; width: auto; border-radius: 6px; }
.brand-name{ font-size: 1rem; font-weight: 400; position: relative; top: 4px; }

.main-nav ul{
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.main-nav a{
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
}
.main-nav a.is-active,
.main-nav a:hover{ color: #fff; }

.header-actions{ display: flex; align-items: center; gap: 1rem; }

.nav-overlay{ display: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: #403f3f;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 200;
}
.nav-toggle span{
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  padding-top: max(var(--section-pad), calc(var(--header-height, 69px) + 12px));
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--gray-300);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.hero-carousel{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.is-active{ opacity: 1; }
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  /* DISEÑO: ajustar intensidad / reemplazar por gradiente de marca */
  background: rgba(0,0,0,.55);
}
.hero-content{
  position: relative;
  z-index: 2;
}
.hero h1{ font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); color: #fff; }
.hero-lead{
  max-width: 62ch;
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero-cta .btn-outline{
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.hero-cta .btn-outline:hover{ background: rgba(255,255,255,.15); }

.hero-cta .btn-primary{
  background: #e8c34f;
  border-color: #e8c34f;
}


/* =========================================================
   Sections genéricas
   ========================================================= */
.section{ padding-block: var(--section-pad); border-bottom: 1px solid var(--gray-300); scroll-margin-top: var(--header-height, 69px); }
.section h2{ font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.section-lead{ color: var(--gray-700); max-width: 62ch; margin-top: -.25rem; margin-bottom: 2rem; }
.note{
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--gray-500);
  font-style: italic;
}

/* =========================================================
   Stats (Nuestra experiencia en números)
   ========================================================= */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.stat-card{
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
/* DISEÑO: data-color="amarillo|fucsia|verde" -> aplicar color de marca a .stat-number */
.stat-number{
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.stat-label{ color: var(--gray-700); margin: 0; font-size: .95rem; }

.stat-card[data-color="amarillo"]{
  background: #e8c34f;
  border-color: #e8c34f;
}
.stat-card[data-color="amarillo"] .stat-number,
.stat-card[data-color="amarillo"] .stat-label{
  color: #fff;
}

/* =========================================================
   Servicios — grilla de cartas
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.service-card{
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-card h3{ font-size: 1.05rem; }
.service-card p{
  color: var(--gray-700);
  font-size: .92rem;
  flex-grow: 1;
  margin: 0;
}
.service-card .btn{ align-self: flex-start; margin-top: .5rem; }

.service-card .btn{
  background: #e8c34f;
  border-color: #e8c34f;
  color: #fff;
}

.service-cta .btn-primary{
  background: #e8c34f;
  border-color: #e8c34f;
}


/* =========================================================
   Página de detalle de servicio
   ========================================================= */
.back-link{
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--gray-700);
  font-size: .9rem;
}
.back-link:hover{ color: var(--ink); }

.service-detail h1{ max-width: 32ch; margin-bottom: 1.5rem; }
.service-body{ max-width: 68ch; }
.service-body h3{ margin-top: 2rem; font-size: 1.15rem; }
.service-body h4{ margin: 0 0 .3rem; font-size: 1rem; }
.service-body p{ color: var(--gray-700); }
.service-body .lead{ color: var(--ink); font-weight: 600; }
.service-body ul{
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 1.25rem;
}
.service-body ul li{ color: var(--gray-700); margin-bottom: .5rem; }

.steps{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.step{ display: flex; gap: 1rem; align-items: flex-start; }
.step-number{
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
}
.step h4{ margin-bottom: .25rem; }
.step p{ margin: 0; }

.service-cta{ margin-top: 2rem; }

.service-pager{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-300);
}
.service-pager-link{
  text-decoration: none;
  color: var(--gray-700);
  font-size: .9rem;
  font-weight: 600;
}
.service-pager-link:hover{ color: var(--ink); }

/* =========================================================
   Contacto
   ========================================================= */
.contact-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-list{ list-style: none; margin-bottom: 1.5rem; }
.contact-list li{ margin-bottom: .5rem; color: var(--gray-700); }
.contact-list a{ text-decoration: underline; }

.contact-info .btn-primary{
  background: #e8c34f;
  border-color: #e8c34f;
}

.social-row{ display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-icon{
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  color: var(--ink);
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.social-icon svg{ width: 18px; height: 18px; }
.social-icon:hover{
  background: #e8c34f;
  border-color: #e8c34f;
  color: #fff;
  transform: translateY(-3px);
}


.cv-form{
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.cv-form .btn-primary{
  background: #e8c34f;
  border-color: #e8c34f;
}



.form-note{ font-size: .85rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.form-row{ margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.form-row label{ font-size: .85rem; font-weight: 600; }
.form-row input{
  font: inherit;
  padding: .65rem .8rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
}
.form-row input:focus{ outline: 2px solid var(--ink); outline-offset: 1px; }
.form-row.has-error input{ border-color: #B3261E; }
.field-error{ font-size: .78rem; color: #B3261E; min-height: 1em; }
.form-success{
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  background: var(--gray-100);
  font-size: .9rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ padding-top: 2.5rem; background: #403f3f; color: #fff; }
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-mark{ height: 40px; width: auto; border-radius: 6px; margin-bottom: .85rem; }
.footer-brand p{ color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-nav-title{
  display: block;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  margin-bottom: .85rem;
}
.footer-nav, .footer-contact{ display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.footer-nav a, .footer-contact a{ text-decoration: none; color: rgba(255,255,255,.75); }
.footer-nav a:hover, .footer-contact a:hover{ color: #fff; }
.footer-bottom{ padding-block: 1.25rem; }
.footer-bottom p{ margin: 0; font-size: .8rem; color: rgba(255,255,255,.5); }


/* =========================================================
   WhatsApp flotante
   ========================================================= */
.whatsapp-float{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* DISEÑO: reemplazar por el color de marca (o el verde de WhatsApp) */
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 60;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width: 28px; height: 28px; }

@media (max-width: 720px){
  .whatsapp-float{
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg{ width: 26px; height: 26px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .stats-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: span 2; }
}

@media (max-width: 720px){
  .main-nav{
    position: fixed; inset: 0 0 0 auto; top: 0;
    height: 100vh; width: min(80vw, 320px);
    background: var(--white);
    border-left: 1px solid var(--gray-300);
    padding: 5.5rem 1.75rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    z-index: 90;
  }
  .main-nav.is-open{
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s linear 0s;
  }
  .main-nav ul{ flex-direction: column; gap: 1.4rem; }
  .main-nav a{ font-size: 1.05rem; color: var(--gray-700); }
  .main-nav a.is-active,
  .main-nav a:hover{ color: var(--ink); }

  .nav-overlay{
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 85;
  }
  .nav-overlay.is-open{ opacity: 1; pointer-events: auto; }

  .nav-toggle{ display: flex; }
	
  	

  .services-grid{ grid-template-columns: 1fr; }
  .service-pager{ flex-direction: column; gap: .75rem; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-brand{ grid-column: span 1; }
}