/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.4s;
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(8px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
}

.logo span {
  color: #0ce008b9;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #0ce008b9;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: #1e3a8a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ==========================================================================
   HERO + CARRUSEL
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.slogan {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 12px;
  transition: all 0.3s;
}

.primary {
  background: #0ce008b9;
  color: white;
}

.primary:hover {
  background: #0ce008b9;
  transform: translateY(-3px);
}

.secondary {
  background: transparent;
  border: 2px solid #0ce008b9;
  color: #0ce008b9;
}

.secondary:hover {
  background: #0ce008b9;
  color: white;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}

.bg-light {
  background: #f8fafc;
}

/* Centralización - 8 cards con rotación */
.centralizacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: center;
}

.central-item {
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.central-item:hover {
  transform: translateY(-10px);
}

.central-item .icon {
  font-size: 3.2rem;
  color: #0ce008b9;
  margin-bottom: 1.2rem;
  transition: transform 0.8s ease;
}

.central-item:hover .icon {
  transform: rotate(360deg);
}

/* Servicios - más cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  transition: transform 0.4s, box-shadow 0.4s;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.service-img {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 1.8rem;
  text-align: center;
}

.service-content h3 {
  color: #1e3a8a;
  margin-bottom: 0.8rem;
}

/* Línea del tiempo vertical */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 6px;
  background: #0ce008b9;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  padding: 20px 30px;
  background: white;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-10px);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: #1e3a8a;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 25px;
  height: 25px;
  right: -17px;
  background: #0ce008b9;
  border: 4px solid #1e3a8a;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left .timeline-content::after {
  left: -17px;
  right: auto;
}

@media (max-width: 900px) {
  .timeline::before {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item.right {
    left: 0;
  }
}

/* Noticias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  transition: transform 0.4s;
}

.news-card:hover {
  transform: translateY(-12px);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-content {
  padding: 1.8rem;
  text-align: center;
}

.btn.small {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* Misión / Valores (original) */
.mision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mision-text h3 {
  color: #1e3a8a;
  margin: 1.8rem 0 0.8rem;
}

.valores-list {
  list-style: none;
  margin-top: 1.5rem;
}

.valores-list li {
  margin: 0.9rem 0;
  font-size: 1.1rem;
}

.valores-list i {
  color: #0ce008b9;
  margin-right: 12px;
}

.mision-img {
  height: 480px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Sectores */
.sectores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.sector-item {
  background: #1e3a8a;
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.contact-info p {
  margin: 1.2rem 0;
  font-size: 1.1rem;
}

.contact-info i {
  color: #0ce008b9;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.15);
}

/* Scroll Top */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1e3a8a;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  z-index: 998;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive general */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.8rem; }
  .slogan { font-size: 1.4rem; }
  
  .mision-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .mision-img {
    height: 360px;
  }

  .services-grid,
  .centralizacion-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.4rem; }
  .btn { padding: 12px 26px; font-size: 0.95rem; }
}




















.testimonial-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.card-text {
  font-style: italic;
  color: #555;
}

.card-author {
  margin-top: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  text-align: right;
}