:root{
  --primary: #1e5b64;
  --secondary: #79aeb6;
  --accent: #0f2f34;
  --bg: #f6f7f8;
  --text: #23343a;
}
*{box-sizing:border-box}
body{margin:0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Arial; color:var(--text); background:var(--bg);}
.container{max-width:1100px; margin:0 auto; padding:0 1rem;}
.header{position:sticky; top:0; background:#fff; border-bottom:1px solid #e9eef1; z-index:10;}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:0.75rem 0;}
.logo{height:44px; border-radius:.5rem}
.nav a{margin:0 .75rem; color:var(--text); text-decoration:none; font-weight:600}
.btn{background:var(--primary); color:#fff; padding:.6rem 1rem; border-radius:.75rem; text-decoration:none; display:inline-block; font-weight:700; box-shadow:0 5px 15px rgba(30,91,100,.2);}
.btn:hover{filter:brightness(1.05)}
.btn-lg{padding:.9rem 1.25rem; font-size:1.05rem}
.hero h1{font-size:2.2rem; color:var(--accent); margin:0 0 .5rem}
.section{padding:3rem 0}
.section.alt{background:#fff}
.grid-2{display:grid; grid-template-columns:1.2fr 1fr; gap:1.5rem}
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:1rem}
.card{background:#fff; padding:1rem; border:1px solid #e6ecef; border-radius:1rem; box-shadow:0 10px 25px rgba(0,0,0,.04)}
.footer{padding:1.5rem 0; background:#fff; border-top:1px solid #e9eef1; text-align:center; color:#6b7a80}

/* --- Centrar Títulos de Sección --- */
:where(#quienes-somos, #valores, #servicios, #capacitacion, #blog, #citas, #contacto) > .container > h2 {
  text-align: center;
}
#quienes-somos h3 {
  text-align: center;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

@media (max-width:900px){.grid-2{grid-template-columns:1fr} .cards{grid-template-columns:1fr} .nav{display:none}}

/* --- Misión, Visión y Valores (sin números) --- */
:where(#mision, #valores, #mision-vision-valores, #quienes-somos) {
  text-align: left;
  background: var(--bg);
  scroll-margin-top: 84px;
}

:where(#mision, #valores, #mision-vision-valores) h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 0 0 .8rem;
  color: var(--accent);
}

:where(#mision, #valores, #mision-vision-valores) p {
  margin: 0 0 1.1rem;
}

:where(#valores) ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
  line-height: 1.6;
}

:where(#valores) li {
  margin: .6rem 0;
  font-size: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

:where(#valores) li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Footer + Redes Sociales --- */
.footer {
  background: var(--accent);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 4px solid var(--secondary);
}

.footer p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  text-decoration: none;
}

.social-links a:hover {
  filter: brightness(1.05);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}

/* --- Botón CTA Mejorado --- */
.btn{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff; 
  padding:.6rem 1rem; 
  border-radius:.75rem; 
  text-decoration:none; 
  display:inline-block; 
  font-weight:700; 
  border: none;
  box-shadow:0 8px 20px rgba(30,91,100,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover{
  transform: translateY(-3px);
  box-shadow:0 10px 25px rgba(30,91,100,.4);
  filter:brightness(1.1);
}
.btn-lg{padding:.9rem 1.25rem; font-size:1.05rem}


/* --- Estilos para Iconos en Servicios (Original) --- */
.card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
}

.card h3 i {
  color: var(--primary);
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

/* --- Estilos para el Menú Móvil (Hamburguesa) --- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  z-index: 1001;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(30, 91, 100, 0.98);
  backdrop-filter: blur(5px);
  transition: left .4s ease;
  z-index: 1000;
}

.nav-mobile.active {
  left: 0;
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}


@media (max-width:900px){
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header .btn { display: none; }

  .grid-2{grid-template-columns:1fr} 
  .cards{grid-template-columns:1fr} 
}

/* --- ESTILOS PARA SERVICIOS DESPLEGABLES --- */
.services-container {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid #e6ecef;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-align: left;
  transition: background-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.service-toggle:hover {
  background-color: #f9fafb;
}

.service-toggle h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  font-size: 1.25rem;
}

.service-toggle h3 i {
  color: var(--primary);
  font-size: 1.8rem;
  width: 35px;
  text-align: center;
}

.service-toggle .indicator {
  font-size: 1.2rem;
  color: var(--secondary);
  transition: transform .3s ease;
}

.service-toggle.active .indicator {
  transform: rotate(180deg);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #fff;
  border-radius: 0 0 1rem 1rem;
  margin-top: -0.8rem;
  padding-left: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.service-content ul {
  list-style-type: none;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  margin: 0;
}

.service-content li {
  padding: .6rem 0;
  border-bottom: 1px solid #e9eef1;
  color: #333;
}

.service-content li:last-child {
  border-bottom: none;
}

/* --- ESTILOS PARA EL CARRUSEL (IMÁGENES UNIFORMES) --- */
.carousel-container {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 480px;
  min-height: 280px;
  overflow: hidden;
  position: relative;
  background-color: var(--accent);
}

.carousel-slide {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  margin: 0 -8px;
}

.carousel-slide img {
  height: 100%;
  flex-shrink: 0;
  /* CAMBIO CLAVE: 'contain' asegura que la imagen se vea completa */
  object-fit: contain;
  display: block;
  box-sizing: border-box;
  padding: 0 8px;
  
  /* Móvil: 1 imagen visible */
  width: 100%;
}

/* Tableta: 2 imágenes visibles */
@media (min-width: 600px) {
  .carousel-slide img {
    width: 50%;
  }
}

/* Escritorio: 3 imágenes visibles */
@media (min-width: 1024px) {
  .carousel-slide img {
    width: 33.3333%;
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 5;
  border-radius: 5px;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.prev-button {
  left: 15px;
}

.next-button {
  right: 15px;
}

.carousel-dots {
  display: none;
}