:root {
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-950: #172554;
 
  --slate-900: #04091f; 
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;

  --radius-xl: 1rem;
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
  --shadow-xl: 0 25px 50px rgba(0,0,0,.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--slate-900);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,6,23,.9),
    rgba(15,23,42,.8),
    transparent
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  color: white;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--blue-400);
}

.hero p {
  font-size: 1.3rem;
  color: var(--gray-200);
  margin-bottom: 2.5rem;
}



/* ================= BOTONES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: .3s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(37,99,235,.08);
}

/* ================= SERVICES ================= */
.services {
  padding: 5rem 0;
  background: #fff;
}

.container {
  max-width: 1250px;
  margin: auto;
  padding: 0 1.5rem;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-lg);
  transition: .3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  font-size: 3rem;
  color: var(--blue-400);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.service-card p {
  color: var(--gray-600);
}

.services-cta {
  margin-top: 4rem;
  text-align: center;
}

.info-sections {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}



.info-item img {
  width: 100%;
  max-height: 337px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.info-item img:hover {
  transform: scale(1.05);
}

.info-text {
  max-width: 700px;
  text-align: left;
}

.info-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.info-text p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.info-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-text ul li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.info-text ul li i {
  color: var(--blue-400);
}

/* Responsive: alinear imagen y texto lado a lado en pantallas grandes */
@media(min-width: 1024px) {
  .info-item {
    flex-direction: row;
    gap: 3rem;
  }

  .info-item.reverse {
    flex-direction: row-reverse;
  }

  .info-text {
    text-align: left;
  }
}


/* ================= ANIMACIONES ================= */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: .8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to right,
    var(--slate-900),
    var(--blue-950),
    var(--slate-900)
  );
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

/* Container */
.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}




/* Desktop links */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: #e5e7eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--blue-400);
}

.nav-link.active {
  color: var(--blue-400);
}

/* Underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-btn:hover {
  color: white
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .arrow {
  font-size: 0.7rem;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 250%;
  left: 200%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform-origin: top;
  transition: all .25s ease;
  z-index: 1000;
}

.dropdown-menu a {
  text-decoration: none;
  display: block;
  padding: 12px 16px;
  color: #1e293b;
  font-size: 0.9rem;
  transition: background .2s, color .2s;
}

/* Preparar el enlace para la línea */
.dropdown-menu a {
  position: relative;
  padding-left: 26px; /* espacio para la línea */
}

/* Línea decorativa oculta */
.dropdown-menu a::before {
  content: "|";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: currentColor; /* mismo color del texto */
  opacity: 0;
  transition: opacity .2s ease;
}

/* Mostrar línea al pasar el mouse */
.dropdown-menu a:hover::before {
  opacity: 1;
}


.dropdown-menu a:hover {
  color: #2563eb;
}

/* Mostrar dropdown */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  background: #04091f57;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 600px;
}

.mobile-link {
  display: block;
  padding: 0.9rem 1.5rem;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

.mobile-link:hover {
  color: var(--blue-400);
  background: rgba(59, 130, 246, 0.08);
}

.mobile-link.active {
  color: var(--blue-400);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-dropdown .arrow {
    font-size: 0.7rem;
  }
}

.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-toggle {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 12px;
}

.mobile-submenu a {
  margin-left: 20px;
  text-decoration: none;
  display: block;
  padding: 10px;
  font-size: .9rem;
  color: #cbd5f5;
}

.mobile-submenu a:hover {
  color: #fff;
}

/* abierto */
.mobile-dropdown.open .mobile-submenu {
  max-height: 500px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: linear-gradient(
    to right,
    var(--slate-900),
    var(--blue-950),
    var(--slate-900)
  );
  color: white;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
  padding: 3rem 1.5rem 2rem;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* Titles */
.footer-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-title span {
  color: var(--blue-400);
}

.footer-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Text */
.footer-text {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Contact */
.footer-contact {
  display: grid;
  gap: 0.6rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.95rem;
}

.contact-item .icon {
  font-size: 1rem;
}

/* Links */
.footer-links,
.footer-services {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--blue-400);
}

.footer-services a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-services a:hover {
  color: var(--blue-400);
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.logo img {
  height: 350px;
  margin-top: 30px;/* controla el tamaño */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* efecto bonito */
.logo img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .logo img {
    height: 10rem;
    transform: scale(1.5);
    pointer-events: none;
  }
}


.container1 {
  background-color: #f8fafc;
}

.info-section {
    padding: 80px 20px;
    background: #f8fafc;
  }

  .info-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  @media (max-width: 1024px) {
    .info-grid {
      grid-template-columns: repeat(2, 1fr);
    }

  }

  @media (max-width: 600px) {
    .info-grid {
      grid-template-columns: 1fr;
    }

    .post-card {
      min-height: 38vh;
      max-height: 38vh;
    }
  }




  /* CARD */
  .post-card {
    position: relative;
    min-height: 33.5vh;
    max-height: 33.5vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: fadeScale 0.4s ease;
  }

  @media (max-width: 480px) {
    .post-card {
      min-height: 38vh;
      max-height: 38vh;
    }
  }

  .post-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.18);
  }

  .post-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .post-title {
    margin: 16px 0 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #020617;
  }

  .post-excerpt {
    
    word-break: break-word;
    line-height: 1.5;
    color: #475569;
    font-size: 0.9rem;
  }


  .post-footer {
    padding: 16px 25px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
  }

  .post-footer span {
    color: #475569;
    font-size: 1rem;
  }

  .post-footer button {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
  }

.text-center {
  text-align: center;
  padding: 40px;
}


.btn-news {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 2rem;     /* altura natural */
  font-size: 1.125rem;       /* 18px */
  font-weight: 500;

  background-color: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 16px;

  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.btn-news:hover {
  background-color: #1e293b;
}

/* Focus accesible */
.btn-news:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #94a3b8;
}



.news-preview {
  margin-bottom: 0;
  padding: 80px 20px;
    background: #ebf5ff;
}

.footer {
  margin-top: 0;
}

.section-header {
  text-align: center;     /* text-center */
  margin-bottom: 3rem;    /* mb-12 */
}

.section-title {
  font-size: 2.25rem;     /* text-4xl */
  font-weight: 700;       /* font-bold */
  color: #0f172a;         /* text-slate-900 */
  margin-bottom: 1rem;    /* mb-4 */
}

.section-subtitle {
  font-size: 1.25rem;     /* text-xl */
  color: #4b5563;         /* text-gray-600 */
  max-width: 42rem;       /* max-w-2xl */
  margin-left: auto;      /* mx-auto */
  margin-right: auto;
  line-height: 1.6;
}


