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

:root {
  /* Colores principales */
  --primary-blue: #00a8e8;
  --dark-blue: #0066cc;
  --purple: #2d0a64;
  --dark-purple: #1a0040;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text-dark: #333333;
  --text-gray: #666666;

  /* Colores del sistema */
  --bg: #f4f4f8;
  --text: #1423ef;
  --muted: #4e4f54;
  --primary: #1423ef;
  --card: #ffffff;
  --border: #e5e9f2;
  --star: #150089;
}

html,
body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

h1 {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 34px;
  line-height: 34px;
}

strong {
  color: #000000;
  font-style: italic;
  font-weight: 740;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   CONTENEDOR
   ======================================== */


/* Container estándar */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  box-sizing: border-box;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .containers,
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 4vw, 30px);
    box-sizing: border-box;
  }
}

/* Responsive - Móvil */
@media (max-width: 480px) {
  .containers,
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(12px, 4vw, 20px);
    box-sizing: border-box;
  }
}

/* Container específico para formularios con padding extra */
.container-form {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container-form {
    padding: 0 clamp(12px, 4vw, 24px);
  }
}

@media (max-width: 480px) {
  .container-form {
    padding: 0 clamp(8px, 3vw, 16px);
  }
}

/* Responsive - Pantallas muy pequeñas */
@media (max-width: 360px) {
  .containers,
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(10px, 3vw, 15px);
    box-sizing: border-box;
  }
}

/* ========================================
   TOP BAR Y NAVBAR
   ======================================== */
.top-bar {
  height: 50px;
  background: #0abce5;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1001;
}

@media (max-width: 768px) {
  .top-bar {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    height: 40px;
  }
}

.navbar {
  background-color: #F2F3FF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 50px;
  z-index: 1000;
  padding: 15px 0;
}

@media (max-width: 768px) {
  .navbar {
    top: 45px;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .navbar {
    top: 40px;
    padding: 10px 0;
  }
}

.navbar-contactos {
  background: #F2F3FF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 50px;
  z-index: 1000;
  padding: 15px 0;
}

@media (max-width: 768px) {
  .navbar-contactos {
    top: 45px;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .navbar-contactos {
    top: 40px;
    padding: 10px 0;
  }
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .nav-wrapper {
    padding: 0 clamp(15px, 4vw, 30px);
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    padding: 0 15px;
  }
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 24px;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 20px;
  }
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .nav-menu a {
    font-size: 15px;
    gap: 4px;
  }
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.arrow {
  font-size: 10px;
  transition: transform 0.3s;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  border-radius: 5px;
  margin-top: 10px;
  z-index: 1003;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: var(--light-gray);
}

/* ========================================
   NAVBAR RESPONSIVE (MÓVIL / TABLET)
   ======================================== */
/* Botón hamburguesa (por defecto oculto en desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
  z-index: 1004;
}

.nav-toggle .hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: background 0.3s;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Estilos móviles: ocultar el menú horizontal y mostrar el toggle */
@media (max-width: 992px) {
  .nav-menu {
    gap: 15px;
  }
}

/* Mostrar menú hamburguesa en tablets y móviles (incluyendo iPad) */
@media (max-width: 900px) {
  /* Eliminar margin-left del contenedor del navbar */
  .navbar .container[style*="margin-left"] {
    margin-left: 0 !important;
    padding: 0 20px;
  }
  
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none; /* oculto por defecto en móvil/tablet */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 10px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 1002;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu li:last-child { 
    border-bottom: 0; 
  }

  .nav-menu a {
    padding: 12px 8px;
    width: 100%;
    font-size: 15px;
    justify-content: space-between;
  }

  /* Ajuste del dropdown en móvil: flujo normal (no absolute) */
  .dropdown .dropdown-menu {
    position: relative;
    box-shadow: none;
    margin-top: 0;
    padding-left: 12px;
    background: transparent;
    min-width: auto;
    width: 100%;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 8px;
    font-size: 14px;
  }
  
  /* Asegurar que el nav-wrapper use flexbox correctamente */
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

/* Ajustes adicionales para tablets pequeños */
@media (max-width: 768px) {
  .nav-menu {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .nav-toggle {
    padding: 6px;
    margin-left: 8px;
  }

  .nav-toggle .hamburger {
    width: 22px;
  }

  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    width: 22px;
  }

  .nav-toggle .hamburger::before { top: -7px; }
  .nav-toggle .hamburger::after { top: 7px; }

  .nav-menu {
    padding: 8px 12px;
    max-height: calc(100vh - 90px);
  }

  .nav-menu a {
    padding: 10px 6px;
    font-size: 14px;
  }

  .dropdown-menu a {
    padding: 8px 6px;
    font-size: 13px;
  }
}

/* ========================================
   ENCABEZADO DE PÁGINA
   ======================================== */
.site-header {
  padding: 140px 0 28px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 100px 0 20px;
    text-align: center;
  }
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 12px;
  }
}

.site-header h1 {
  font-size: clamp(24px, 5vw, 34px);
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
}

.intro {
  color: var(--muted);
  max-width: 720px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 768px) {
  .intro {
    font-size: 15px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .intro {
    font-size: 14px;
  }
}

p.preview {
  font-size: 14px;
  color: #1423ef;
  line-height: 27px;
  font-weight: bold;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  p.preview {
    font-size: 13px;
  }
}

p.inicio {
  font-size: 12px;
  color: #808080;
  line-height: 24px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  p.inicio {
    font-size: 11px;
  }
}

co {
  font-weight: bold;
  color: #110262;
  font-size: 12px;
  line-height: 24px;
}

@media (max-width: 480px) {
  co {
    font-size: 11px;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  top: 67px;
  opacity: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--white);
}

.hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--white);
}

/* (limpieza) Bloque btn-primary duplicado eliminado */

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-indicators-static {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  z-index: 10;
}

.hero-indicator-static {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-indicator-static.active {
  background: var(--white);
  width: 30px;
  border-radius: 5px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-arrow-left {
  left: 20px;
}

.hero-arrow-right {
  right: 20px;
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience {
  padding: 80px 0;
  background: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

.experience-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.experience-image {
  flex: 1;
}

.experience-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-content {
  flex: 1;
}

.section-label {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
}

.experience-content h2 {
  font-size: 36px;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.experience-description {
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.features {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;

}

.feature-item:last-child {
  justify-content: space-between;
  gap: 5px;
  align-items: center;
}

.feature-item:last-child .feature-text {
  order: -1;
  display: flex;
  align-items: center;
}

.feature-item:last-child .contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 50px;
  height: 50px;
  filter: none;
}

.feature-text h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.feature-text p {
  color: var(--text-gray);
  font-size: 14px;
}

.btn-secondary {
  background: var(--dark-blue);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 20px 20px;
  border-radius: 10px;
  max-width: 300px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 5px;
}

.contact-icon img {
  width: 60px;
  height: 60px;
  filter: none;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text p {
  font-size: 14px;
  color: var(--text-gray);
}

.contact-text .phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  background: #150089;
  padding: 80px 0;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

.services-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 60px 0;
}

.section-label-white {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
}

.services-title-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.services-header h2 {
  font-size: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
  line-height: 1;
}

.services-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.2;
  max-width: 400px;
  margin: 0;
  align-self: flex-end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* antes 280px */
  gap: 6px;               /* antes 8px */
  margin-top: 40px;       /* antes 60px */
}

.service-card {
  background: linear-gradient(180deg, #110262 0%, #150089 100%);
  padding: 24px 20px;     /* antes 40px 30px */
  width: 220px;           /* antes 267px */
  height: 320px;          /* antes 372px */
  border-radius: 10px;    /* antes 13px */
  opacity: 1;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon img {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}


/* ========================================
   BLOG SECTION
   ======================================== */
.blog {
  padding: 100px 0;
}

.blog-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  box-sizing: border-box;
}

/* Responsive para blog-container */
@media (max-width: 768px) {
  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 4vw, 30px);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(12px, 4vw, 20px);
    box-sizing: border-box;
  }
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 30px;
}

.header-content {
  flex: 1;
}

.header-content .label {
  color: #0047ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-content h1 {
  color: #0047ff;
  margin-bottom: 15px;
  margin-top: 0;
}

.header-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  max-width: 350px;
}

.view-all-btn {
  background: white;
  color: #0047ff;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #0047ff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-all-btn:hover {
  background: #0047ff;
  color: white;
}

.view-all-btn svg {
  width: 20px;
  height: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  width: 100%;
  background: #e9ecef;
}

.blog-card-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.blog-card-meta span:first-child {
  font-weight: 600;
  color: #333;
}

.blog-card-meta::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #666;
  border-radius: 50%;
}

.blog-card-title {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 80px;
}

.read-more-btn {
  background: #0047ff;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #0039cc;
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  padding: 50px 0;
  
}

@media (max-width: 768px) {
  .testimonials {
    padding: 30px 0;
  }
}

.testimonials h2 {
  font-size: clamp(24px, 5vw, 34px);
  margin: 0 0 24px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .testimonials h2 {
    text-align: center;
  }
}
.testimonios {
  background-color: var(--bg);
  padding-top: 50px; 
}
.testimonios h1 {
  color: #0047ff;
}

.container-title {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 60px auto;
  padding: 0 clamp(12px, 4vw, 40px);
  box-sizing: border-box;
}

/* Responsive para container-title */
@media (max-width: 768px) {
  .container-title {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 4vw, 30px);
    margin-bottom: 40px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .container-title {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(12px, 4vw, 20px);
    margin-bottom: 30px;
    box-sizing: border-box;
  }
}

.slider {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  position: relative;
}

@media (max-width: 640px) {
  .slider {
    grid-template-columns: 1fr;
  }

  .slider-prev,
  .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(244, 244, 248, 0.95);
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .slider-prev {
    left: -10px;
  }

  .slider-next {
    right: -10px;
  }
}

.slider-prev,
.slider-next {
  appearance: none;
  background-color: var(--bg);
  color: #349afe;
  font-size: 32px;
  cursor: pointer;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.slider-prev:hover,
.slider-next:hover {
  color: var(--primary);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .slider-prev:hover,
  .slider-next:hover {
    transform: translateY(-50%) scale(1.1);
  }
}

.cards {
  list-style: none;
  margin: 0;
  padding: 50px 0 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    padding: 70px 10px 0 10px;
    gap: 60px;
  }
}

@media (max-width: 480px) {
  .cards {
    padding: 60px 5px 0 5px;
    gap: 50px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 60px 20px 20px 20px;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.08);
  position: relative;
  transition: all 0.3s ease;
  min-height: 150px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: -30px;
}

@media (max-width: 768px) {
  .card {
    margin-top: 0px;
    padding: 70px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 60px 15px 15px 15px;
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 35, 239, 0.12);
}

@media (max-width: 768px) {
  .card:hover {
    transform: translateY(-2px);
  }
}

.avatar {
  position: absolute;
  top: -40px;
  left: 40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(15, 26, 43, 0.15);
  transition: all 0.3s ease;
  border: 3px solid var(--bg);
}

@media (max-width: 768px) {
  .avatar {
    width: 80px;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
  }
}

@media (max-width: 480px) {
  .avatar {
    width: 70px;
    height: 70px;
  }
}

.card:hover .avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(20, 35, 239, 0.2);
}

@media (max-width: 768px) {
  .card:hover .avatar {
    transform: translateX(-50%) scale(1.05);
  }
}

.card h3 {
  margin: 0 0 2px;
  text-align: left;
  color: var(--text);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  margin-left: 20px;
}

@media (max-width: 768px) {
  .card h3 {
    text-align: center;
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .card h3 {
    font-size: 18px;
  }
}

.role {
  color: #000000;
  margin: 0 0 12px;
  font-size: 15px;
  margin-left: 20px;
  line-height: 1.4;
  font-weight: bold;
  text-align: left;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .role {
    text-align: center;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .role {
    font-size: 14px;
  }
}

.quote {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
  margin: 0 0 auto;
  margin-left: 20px;
  padding: 0;
}

@media (max-width: 768px) {
  .quote {
    margin-left: 0;
    text-align: center;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .quote {
    font-size: 14px;
    padding: 0 5px;
  }

  .card h3,
  .role,
  .quote,
  .stars {
    margin-left: 0;
  }
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  margin-top: 12px;
  height: 23px;
  margin-left: 20px;
  text-align: left;
  font-size: 25px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .stars {
    text-align: center;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .stars {
    font-size: 22px;
  }
}

.card:hover .stars {
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 24px auto 0 auto;
  text-align: center;
  width: 100%;
  position: relative;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d5dd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot[aria-current="true"] {
  background: var(--primary);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot:hover {
  transform: scale(1.2);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.site-contactos {
  padding-top: 84px;
}

@media (max-width: 768px) {
  .site-contactos {
    padding-top: 40px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-card {
    border-radius: 16px;
  }

  .contact-grid iframe {
    border-radius: 16px;
  }
}

.form-card {
  background: #f4f4f8;
  border: 1px solid var(--border);
  border-radius: 16px 0 0 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.08);
}

@media (max-width: 768px) {
  .form-card {
    padding: 20px;
    margin: 0 8px; /* añadir margen lateral en tablet */
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 16px;
    margin: 0 4px; /* margen lateral reducido en móvil */
  }
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .form-note {
    font-size: 13px;
    margin: 0 0 16px;
  }
}

.contact-form {
  display: grid;
  gap: 16px;
}

@media (max-width: 480px) {
  .contact-form {
    gap: 12px;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 16px 18px;
  font-size: 16px;
  outline: none;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  font-family: "Inter", sans-serif;
}

@media (max-width: 480px) {
  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 16px; /* mantener 16px para evitar zoom en iOS */
    border-radius: 8px;
  }
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Desktop: nombre + email en dos columnas, textarea a full width, botón a la derecha */
@media (min-width: 900px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .contact-form textarea {
    grid-column: 1 / -1; /* ocupar ambas columnas */
  }

  .contact-submit {
    justify-self: end; /* botón alineado a la derecha */
    grid-column: 2 / 3;
    margin-left: 0; /* eliminar margen fijo */
  }
}

@media (max-width: 480px) {
  .contact-form textarea {
    min-height: 120px;
  }
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 35, 239, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-submit {
  appearance: none;
  border: none;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  width: 171px;
  height: 50px;
  margin-left: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  font-size: 16px;
  justify-self: start;
}

@media (max-width: 768px) {
  .contact-submit {
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .contact-submit {
    width: 100%;
    max-width: 280px;
    height: 48px;
    font-size: 15px;
    margin: 8px 0 0 0;
  }
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 35, 239, 0.18);
  background: #0039cc;
}

.contact-grid iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.08);
}

@media (max-width: 768px) {
  .contact-grid iframe {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .contact-grid iframe {
    min-height: 300px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #1f1b3a;
  color: #ffffff;
  padding: 40px 0 28px;
  margin-top: 80px;
  width: 100%;
  display: flex;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .footer-grid {
    gap: 35px;
    padding: 0 clamp(15px, 4vw, 30px);
  }
}

@media (max-width: 992px) {
  .site-footer {
    padding: 35px 0 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 clamp(20px, 4vw, 30px);
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 28px 0 24px;
    margin-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 clamp(20px, 4vw, 30px);
  }

  .footer-nav,
  .contact,
  .social {
    border-left: none;
    border-top: 2px dotted #6c64a1;
    padding-left: 0;
    padding-top: 20px;
    align-items: flex-start;
  }

  .footer-nav ul {
    padding: 20px 0 0 0;
  }

  .contact address,
  .social address {
    padding-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 24px 0 20px;
    margin-top: 50px;
  }

  .footer-grid {
    gap: 25px;
    padding: 0 20px;
  }

  .footer-nav,
  .contact,
  .social {
    padding-top: 15px;
  }
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

@media (max-width: 480px) {
  .site-footer h4 {
    font-size: 16px;
  }
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.site-footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

@media (max-width: 480px) {
  .footer-logo {
    max-width: 150px;
  }
}

.brand p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .brand p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .brand p {
    font-size: 12px;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 2px dotted #6c64a1;
  padding-left: 4px;
}

@media (max-width: 768px) {
  .footer-nav {
    align-items: flex-start;
  }
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  line-height: 2;
  padding: 40px 0 0 0;
  font-size: 16px;
  display: grid;
}

@media (max-width: 768px) {
  .footer-nav ul {
    padding: 20px 0 0 0;
  }
}

@media (max-width: 480px) {
  .footer-nav ul {
    font-size: 14px;
    padding: 15px 0 0 0;
    line-height: 1.8;
  }
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 2px dotted #6c64a1;
}

@media (max-width: 768px) {
  .contact {
    align-items: flex-start;
  }
}

.contact address {
  display: flex;
  flex-direction: column;
  padding-left: 50px;
  font-style: normal;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .contact address {
    padding-left: 0;
    margin-top: 10px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info p {
  margin: 4px 0;
  gap: 8px;
  text-align: left;
  font-size: 16px;
}

@media (max-width: 768px) {
  .contact-info p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .contact-info p {
    font-size: 14px;
  }
}

.contact-info em {
  font-weight: bold;
  font-style: normal;
  color: #ffffff;
}

.contact-info img {
  width: 19px;
  height: 22px;
  padding-left: 0px;
  object-fit: contain;
  align-self: flex-start;
}

@media (max-width: 480px) {
  .contact-info img {
    width: 16px;
    height: 18px;
  }
}

.contact .icon,
.social .icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 2px dotted #6c64a1;
}

@media (max-width: 768px) {
  .social {
    align-items: flex-start;
  }
}

.social address {
  display: flex;
  flex-direction: column;
  padding-left: 50px;
  font-style: normal;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .social address {
    padding-left: 0;
    margin-top: 10px;
  }
}

.social em {
  font-weight: bold;
  font-style: normal;
  color: #ffffff;
  font-size: 16px;
  line-height: 18px;
}

@media (max-width: 480px) {
  .social em {
    font-size: 14px;
  }
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .social-links {
    margin-left: 0;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .social-links {
    gap: 8px;
  }
}

.social-links img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

@media (max-width: 480px) {
  .social-links img {
    width: 20px;
    height: 20px;
  }
}

.social-links a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  background-color: #100d1e;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0 clamp(12px, 4vw, 40px);
}

@media (max-width: 768px) {
  .footer-bottom {
    padding: 18px 10px;
  }

  .footer-bottom p {
    font-size: 15px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    padding: 16px 8px;
  }

  .footer-bottom p {
    font-size: 14px;
    padding: 0 15px;
    line-height: 1.4;
  }
}

/* ========================================
   RESPONSIVE GENERAL
   ======================================== */
@media (max-width: 968px) {
  .hero-content,
  .experience-wrapper {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-slider {
    height: 600px;
  }

  .experience-content h2 {
    font-size: 28px;
  }

  .services-header h2 {
    font-size: 32px;
  }

  .nav-menu {
    display: none;
  }

  .hero-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-header {
    flex-direction: column;
  }

  .header-content h1 {
    font-size: 34px;
  }

  .view-all-btn {
    align-self: flex-start;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content {
    padding: 80px 0 40px;
  }

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

  .experience,
  .services {
    padding: 50px 0;
  }

  .nav-container {
    padding: 0 2%;
  }
}

/* ============================================
   SECCIÓN MISIÓN, VISIÓN Y VALORES
   ============================================ */

.mission-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.section-header {
    margin-bottom: 40px;
}

.section-subtitle {
    color: #2563EB;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    color: #1E40AF;
    font-size: 42px;
    font-weight: 700;
    padding-top: 29px;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.image-container {
    position: relative;
}

.main-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.main-image.active-slide {
    opacity: 1;
    position: relative;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator:hover {
    background-color: #9CA3AF;
}

.indicator.active {
    background-color: #2563EB;
}

.text-content {
    padding-top: 10px;
}

.tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    border-bottom: 2px solid #E5E7EB;
}

.tab {
    font-size: 18px;
    font-weight: 700;
    color: #9CA3AF;
    padding-bottom: 12px;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: color 0.3s;
}

.tab.active {
    color: #1E40AF;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1E40AF;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.mission-text {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px; /* sin separación entre columnas y filas */
}

.value-card {
  display: flex;
  gap: 0; /* sin separación entre elementos internos */
  margin: 0;
  padding: 0;
}


.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
    color: #2563EB;
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-content h3 {
    color: #1E40AF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.value-content p {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.5;
}

.numbers-section {
    margin-top: 80px;
}

.numbers-title {
    color: #1E40AF;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 48px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.number-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.number-image {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.number {
    color: #2563EB;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.number-plus {
    font-size: 48px;
}

.number-label {
    color: #4E4F54;
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */

.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 24px;
}

.service-card-detalle {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card-detalle:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-title {
    color: #1E40AF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   SECCIÓN VALORES
   ============================================ */

.valores-section {
    width: 100%;
    background-color: #E5E7EB;
    padding: 60px 0 80px 0;
}

.valores-section > .valores-header,
.valores-section > .valores-grid,
.valores-section > .valores-grid-bottom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.valores-header {
    text-align: left;
    margin-bottom: 50px;
}

.valores-subtitle {
    color: #2563EB;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.valores-title {
    color: #1E40AF;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.valores-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 800px;
}

.valor-card {
    text-align: left;
}

.valor-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
}

.valor-icon svg {
    width: 100%;
    height: 100%;
    color: #374151;
    stroke-width: 1.5;
}

.valor-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.valor-nombre {
    color: #1E40AF;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.valor-descripcion {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .services-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .valores-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .section-title,
    .numbers-title {
        font-size: 32px;
    }

    .number {
        font-size: 56px;
    }

    .number-plus {
        font-size: 36px;
    }

    .valores-title {
        font-size: 36px;
    }

    .valores-section {
        padding: 40px 0 60px 0;
    }

    .valores-section > .valores-header,
    .valores-section > .valores-grid,
    .valores-section > .valores-grid-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }

    .valores-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 35px;
    }

    .valores-grid-bottom {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 640px) {
    .services-section .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .valores-title {
        font-size: 32px;
    }

    /* Ajustes responsivos para sección de números (móvil) */
    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    .number-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .number-image {
        height: 50px;
    }
    .numbers-title {
        font-size: 28px;
    }
    .number-label {
        font-size: 16px;
        text-align: center;
    }
}

/*cavero*/

/* Contenedor general */
.contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Layout principal con imagen a la derecha */
.layout-principal {
  background-color: #ffffff;
  padding: 16px 12px;
  max-width: 1085px; /* Limitar el ancho máximo */
  margin: 0 auto; /* Centrar el contenedor */
  box-sizing: border-box;
}

.layout-flex { display: flex; flex-wrap: wrap; align-items: flex-start; }

/* Columna izquierda */ .contenido-izquierdo { flex: 1 1 60%; padding: 40px 20px }

.contenido-izquierdo h1 {
  font-size: 2em;
  color: #003366;
  margin-bottom: 20px;
 
}

.contenido-izquierdo h4 {
  font-size: 1em;
  color: #003366;
  margin-bottom: 20px;
}

.contenido-izquierdo p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.contenido-izquierdo h2 {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 20px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.celda {
  background-color: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.celda:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.celda span {
  font-size: 1.2em;
  color: #003366;
  display: block;
  margin-bottom: 8px;
}

.celda span img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.celda p {
  font-size: 0.9em;
  margin: 0;
  line-height: 1.4;
}

/* Imagen derecha alineada con el título */
.imagen-derecha {
  flex: 1 1 40%;
  padding: 60px 20px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.imagen-derecha img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.texto-bajo-imagen {
  margin-top: 20px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

/* Sección de experiencia */
.experiencia {
  background-color: #ffffff;
  padding: 40px 0;
}

.experiencia-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.imagen-experiencia {
  flex: 1 1 500px;
}

.imagen-experiencia img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.texto-experiencia {
  flex: 1 1 500px;
}

.texto-experiencia h1 {
  font-size: 2em;
  color: #003366;
  margin-bottom: 20px;
}

.texto-experiencia h4 {
  font-size: 1em;
  color: #003366;
  margin-bottom: 20px;
}

.texto-experiencia p {
  font-size: 1em;
  line-height: 1.6;
}

/* Pie de página */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Responsivo */
@media (max-width: 1200px) {
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .celda {
    padding: 14px;
  }
}

@media (max-width: 992px) {
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .celda {
    padding: 14px;
  }
  
  .celda span {
    font-size: 1.1em;
  }
  
  .celda p {
    font-size: 0.85em;
  }
}

@media (max-width: 768px) {
  .layout-flex,
  .experiencia-grid {
    flex-direction: column;
  }

  .grid-servicios {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .celda {
    padding: 16px;
  }
  
  .celda span {
    font-size: 1em;
    margin-bottom: 10px;
  }
  
  .celda p {
    font-size: 0.9em;
  }

  .imagen-derecha img {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .grid-servicios {
    gap: 12px;
  }
  
  .celda {
    padding: 14px;
  }
  
  .celda span {
    font-size: 0.95em;
  }
  
  .celda p {
    font-size: 0.85em;
  }
}

/* === INTEGRACIÓN DE NUEVO ESTILO === */
/* Reset y Base */
/* (limpieza) Eliminado reset duplicado; se conserva el de la cabecera */

/* (limpieza) Navbar/Top-bar duplicados eliminados: se conserva la definición principal */

/* (limpieza) Bloque Hero duplicado eliminado */

/* (limpieza) Bloque hero-slider duplicado eliminado */

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 85px 20px 60px;
  color: var(--white);
  text-align: left;
  max-width: 500px;
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--white);
}

.hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--white);
}
/* Indicadores del slider */
.hero-indicators-static {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  z-index: 10;
}

.hero-indicator-static {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-indicator-static.active {
  background: var(--white);
  width: 30px;
  border-radius: 5px;
}

/* Botones de navegación */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-arrow-left {
  left: 20px;
}

.hero-arrow-right {
  right: 20px;
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
}

/* Experience Section */
.experience {
  padding: 80px 20px;
  background: #ffffff;
}

.experience-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.experience-image {
  width: 105%;
}

.experience-image img {
  width: 150%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  color: #0047FF;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2px;
}

.experience-content h2 {
  color: #0047FF;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.experience-description {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  margin-top: 0;
}

.experience-description strong {
  color: #333;
  font-weight: 700;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 5px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  min-height: 80px;
}

.feature-group {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
  min-width: 200px;
}

.feature-group-right {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex-shrink: 0;
  min-width: 230px;
  margin-left: auto;
  margin-right: 0;
}
.feature-text h3 {
  color: #0047FF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.feature-button {
  margin-right: auto;
}

.btn-secondary {
  background: #0047FF;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #0039CC;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text span {
  color: #666;
  font-size: 12px;
}

.contact-text a {
  color: #333;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

/* Services Section */
.services {
  background: #150089;
  padding: 80px 0;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
}

.services-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 60px 0;
}

.section-label-white {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
}

.services-title-wrapper {
  display: flex;
  align-items: flex-end; /* alinear contenidos al borde inferior */
  gap: 20px;
}

.services-header h2 {
  font-size: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
  line-height: 1;
}

.services-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.2;
  max-width: 400px;
  margin: 0; /* sin margen extra para pegar al borde inferior */
  align-self: flex-end; /* asegura alineación inferior si fuera necesario */
}



.service-card {
  background: linear-gradient(180deg, #110262 0%, #150089 100%);
  padding: 40px 30px;
  width: 267px;
  height: 372px;
  border-radius: 13px;
  opacity: 1;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon img {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content,
  .experience-wrapper {
      flex-direction: column;
  }

  .hero-content h1 {
      font-size: 36px;
  }

  .hero-slider {
      height: 600px;
  }

  .experience-wrapper {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .experience-content h2 {
      font-size: 32px;
  }

  .services-header h2 {
      font-size: 32px;
  }

  .nav-menu {
      display: none;
  }

  .hero-arrow {
      display: none;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
      font-size: 28px;
  }

  .hero-content {
      padding: 80px 0 40px;
  }

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

  .services {
      padding: 50px 0;
  }
  
  .feature-item,
  .contact-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
  }
  
  .contact-info {
      width: 100%;
  }
  .nav-container {
      padding: 0 2%;
  }
}
.blog {
  padding: 100px 0;
}

.blog-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  box-sizing: border-box;
}

/* Responsive para blog-container */
@media (max-width: 768px) {
  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 4vw, 30px);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(12px, 4vw, 20px);
    box-sizing: border-box;
  }
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 30px;
}

.header-content {
  flex: 1;
}

.header-content .label {
  color: #0047FF;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-content h1 {
  color: #0047FF;
  margin-bottom: 15px;
  margin-top: 0;
}

.header-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  max-width: 350px;
}

.view-all-btn {
  background: white;
  color: #0047FF;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #0047FF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-all-btn:hover {
  background: #0047FF;
  color: white;
}

.view-all-btn svg {
  width: 20px;
  height: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.blog-card-meta span:first-child {
  font-weight: 600;
  color: #333;
}

.blog-card-meta::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #666;
  border-radius: 50%;
}

.blog-card-title {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 80px;
}

.read-more-btn {
  background: #0047FF;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #0039CC;
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .blog-header {
      flex-direction: column;
  }
  
  .header-content h1 {
      font-size: 34px;
  }
  
  .view-all-btn {
      align-self: flex-start;
  }
  
  .blog-grid {
      grid-template-columns: 1fr;
  }
}

/* Utilidades */
img {
  max-width: 100%;
}

/* Espaciados adicionales para evitar que se vea "pegado" */
.contenedor {
  padding-top: 120px; /* espacio bajo barra fija */
}

@media (max-width: 768px) {
  .contenedor {
    padding-top: 90px;
  }
}

.layout-flex {
  gap: 0; /* evitar que el gap empuje la imagen hacia abajo */
}

.contenido-izquierdo {
  padding-right: 0; /* mantener ancho original de la columna */
}
/* espaciado interno sin afectar el ancho de la columna */
.contenido-izquierdo > * + * {
  margin-top: 16px;
}

/*cavero2*/

header {
  background-color: white;
  color: #4285f4;
  padding: 1rem;
  text-align: left;
}

.noticias-container {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 2rem;
    align-items: flex-start;
    margin-left: 0px;
    margin-right: 0px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Evitar desbordamiento horizontal */
  }



/* 📰 Artículo principal */
.main-article {
  flex: 1 1 65%; /* Ocupa 65% del espacio */
  max-width: 48%;
  background-color: #F4F4F8;
  padding: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.image-banner img {
  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0;
  margin-top: 0;
}

.image-banner {
  padding: 0;
}

/* 🆕 Estilo para fuente y fecha */
.source-label {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 0.10rem;
  font-style: Helvetica;
  white-space: nowrap; /* 🔒 evita que se divida en dos líneas */
}



/* Título principal completamente azul */
.highlight-title {
  color: #1423EF; /* Azul Google */
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0 1.5rem;
  padding-left: 0.25rem;
  margin-left: 4rem;
}

/* Fecha adicional */
.date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.main-article p {
  flex: 1; /* Ocupa el espacio restante */
  padding: 1rem 1.5rem;
  margin: 0;
  box-sizing: border-box;
  overflow-y: auto; /* Scroll si el contenido es largo */
  text-align: justify;
  margin-left: 1rem;
}

 /* 📌 Noticias recientes estilo tarjeta */
.sidebar {
  flex: 1 1 30%; /* Ocupa 30% del espacio */
  max-width: 30%;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #4285f4;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.news-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.news-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-content h4 {
  margin: 0;
  font-size: 0.875rem; /* un toque más pequeño */
  line-height: 1.25;
  color: #333;
}

.news-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
}

.news-content a {
  font-size: 0.9rem;
  color: #4285f4;
  text-decoration: none;
}

.news-content a:hover {
  text-decoration: underline;
}

/* ============================================
   📱 ESTILOS RESPONSIVOS PARA NOTICIAS
   ============================================ */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
  .noticias-container header {
    margin-left: 2rem !important;
  }
  
  .noticias-container {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .highlight-title {
    margin-left: 2rem;
    font-size: 1.5rem;
  }
  
  .main-article p {
    margin-left: 2rem;
    padding: 0.8rem 1rem;
  }
  
  .main-article .source-label {
    padding: 0 1rem;
  }
}

/* Móviles (menos de 768px) */
@media (max-width: 768px) {
  .noticias-container ~ header,
  header:has(~ .noticias-container) {
    margin-left: 1rem !important;
  }
  
  .breadcrumb {
    font-size: 0.85rem;
  }
  
  .noticias-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .main-article {
    width: 100%;
    margin-left: 0;
  }
  
  .highlight-title {
    margin-left: 1rem;
    font-size: 1.3rem;
    padding: 0 1rem;
  }
  
  .main-article p {
    margin-left: 0;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  
  .main-article .source-label {
    padding: 0 1rem;
    font-size: 0.85rem;
  }
  
  .sidebar {
    width: 100%;
    margin-top: 1rem;
  }
  
  .news-card {
    flex-direction: column;
    align-items: center;
  }
  
  .news-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
}

/* Móviles pequeños (menos de 480px) */
@media (max-width: 480px) {
  .noticias-container ~ header,
  header:has(~ .noticias-container) {
    margin-left: 0.5rem !important;
  }
  
  .noticias-container {
    padding: 0.5rem;
  }
  
  .highlight-title {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }
  
  .main-article p {
    margin-left: 0;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: left;
  }
  
  .main-article .source-label {
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }
  
  .sidebar h3 {
    font-size: 1rem;
  }
  
  .news-content h4 {
    font-size: 0.8rem;
  }
}

/* 📎 Footer */
footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 85px 20px 60px;
  color: var(--white);
  text-align: left;
  max-width: 500px;
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--white);
}

.hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--white);
}

.btn-primary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Indicadores del slider */
.hero-indicators-static {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  z-index: 10;
}

.hero-indicator-static {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-indicator-static.active {
  background: var(--white);
  width: 30px;
  border-radius: 5px;
}

/* Botones de navegación */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-arrow-left {
  left: 20px;
}

.hero-arrow-right {
  right: 20px;
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
}

/* Experience Section */
.experience {
  padding: 80px 20px;
  background: #ffffff;
}

.experience-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.experience-image {
  width: 105%;
}

.experience-image img {
  width: 150%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  color: #0047FF;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2px;
}

.experience-content h2 {
  color: #0047FF;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.experience-description {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  margin-top: 0;
}

.experience-description strong {
  color: #333;
  font-weight: 700;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 5px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  min-height: 80px;
}

.feature-group {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
  min-width: 200px;
}

.feature-group-right {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex-shrink: 0;
  min-width: 230px;
  margin-left: auto;
  margin-right: 0;
}

.feature-text h3 {
  color: #0047FF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.feature-button {
  margin-right: auto;
}

.btn-secondary {
  background: #0047FF;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #0039CC;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text span {
  color: #666;
  font-size: 12px;
}

.contact-text a {
  color: #333;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

/* Services Section */
.services {
  background: #150089;

  padding: 80px 0;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0%;
}

.services-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 60px 0;
}

.section-label-white {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
}

.services-title-wrapper {
  display: flex;
  align-items: flex-end; /* alinear contenidos al borde inferior */
  gap: 20px;
}

.services-header h2 {
  font-size: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
  line-height: 1;
}

.services-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.2;
  max-width: 400px;
  margin: 0; /* sin margen extra para pegar al borde inferior */
  align-self: flex-end; /* asegura alineación inferior si fuera necesario */
}


.service-card {
  background: linear-gradient(180deg, #110262 0%, #150089 100%);
  padding: 40px 30px;
  width: 267px;
  height: 372px;
  border-radius: 13px;
  opacity: 1;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon img {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content,
  .experience-wrapper {
      flex-direction: column;
  }

  .hero-content h1 {
      font-size: 36px;
  }

  .hero-slider {
      height: 600px;
  }

  .experience-wrapper {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .experience-content h2 {
      font-size: 32px;
  }

  .services-header h2 {
      font-size: 32px;
  }

  .nav-menu {
      display: none;
  }

  .hero-arrow {
      display: none;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
      font-size: 28px;
  }

  .hero-content {
      padding: 80px 0 40px;
  }

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

  .services {
      padding: 50px 0;
  }
  
  .feature-item,
  .contact-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
  }
  
  .contact-info {
      width: 100%;
  }
  .nav-container {
      padding: 0 2%;
  }
}
.blog {
  padding: 100px 0;
}

.blog-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  box-sizing: border-box;
}

/* Responsive para blog-container */
@media (max-width: 768px) {
  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 4vw, 30px);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .blog-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(12px, 4vw, 20px);
    box-sizing: border-box;
  }
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 30px;
}

.header-content {
  flex: 1;
}

.header-content .label {
  color: #0047FF;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-content h1 {
  color: #0047FF;
  margin-bottom: 15px;
  margin-top: 0;
}

.header-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  max-width: 350px;
}

.view-all-btn {
  background: white;
  color: #0047FF;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #0047FF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-all-btn:hover {
  background: #0047FF;
  color: white;
}

.view-all-btn svg {
  width: 20px;
  height: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.blog-card-meta span:first-child {
  font-weight: 600;
  color: #333;
}

.blog-card-meta::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #666;
  border-radius: 50%;
}

.blog-card-title {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 80px;
}

.read-more-btn {
  background: #0047FF;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #0039CC;
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .blog-header {
      flex-direction: column;
  }
  
  .header-content h1 {
      font-size: 34px;
  }
  
  .view-all-btn {
      align-self: flex-start;
  }
  
  .blog-grid {
      grid-template-columns: 1fr;
  }
}

/* Evitar desbordes en el layout de noticias */
.noticias-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px; /* espacio lateral seguro */
}
.main-article,
.sidebar {
  box-sizing: border-box;
  min-width: 0; /* permite que el contenido se ajuste dentro del flex container */
}
.highlight-title,
.news-content h4,
.blog-card-title {
  overflow-wrap: anywhere; /* rompe palabras muy largas */
  word-break: break-word;
}
.image-banner img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 📎 Footer */
  footer {
    background-color: #eee;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* (limpieza) Bloque hero-content duplicado eliminado */

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--white);
}

/* (limpieza) Bloque btn-primary duplicado eliminado */

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Indicadores del slider */
.hero-indicators-static {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    z-index: 10;
}

.hero-indicator-static {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator-static.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

/* Botones de navegación */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

.hero-arrow svg {
    width: 24px;
    height: 24px;
}

/* Experience Section */
.experience {
    padding: 80px 20px;
    background: #ffffff;
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-image {
    width: 105%;
}

.experience-image img {
    width: 150%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-label {
    color: #0047FF;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2px;
}

.experience-content h2 {
    color: #0047FF;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.experience-description {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    margin-top: 0;
}

.experience-description strong {
    color: #333;
    font-weight: 700;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 5px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    flex-wrap: wrap;
    min-height: 80px;
}

.feature-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.feature-group-right {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-shrink: 0;
    min-width: 230px;
    margin-left: auto;
    margin-right: 0;
}


.feature-text h3 {
    color: #0047FF;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.feature-button {
    margin-right: auto;
}

.btn-secondary {
    background: #0047FF;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #0039CC;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    color: #666;
    font-size: 12px;
}

.contact-text a {
    color: #333;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

/* Services Section */
.services {
    background: #150089;

    padding: 80px 0;
    color: var(--white);
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
}

.services-header {
    text-align: left;
    max-width: 800px;
    margin: 0 0 60px 0;
}

.section-label-white {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

.services-title-wrapper {
    display: flex;
    align-items: flex-end; /* alinear contenidos al borde inferior */
    gap: 20px;
}

.services-header h2 {
    font-size: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1;
}

.services-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.2;
    max-width: 400px;
    margin: 0; /* sin margen extra para pegar al borde inferior */
    align-self: flex-end; /* asegura alineación inferior si fuera necesario */
}



.service-card {
    background: linear-gradient(180deg, #110262 0%, #150089 100%);
    padding: 40px 30px;
    width: 267px;
    height: 372px;
    border-radius: 13px;
    opacity: 1;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon img {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content,
    .experience-wrapper {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-slider {
        height: 600px;
    }

    .experience-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-content h2 {
        font-size: 32px;
    }

    .services-header h2 {
        font-size: 32px;
    }

    .nav-menu {
        display: none;
    }

    .hero-arrow {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content {
        padding: 80px 0 40px;
    }

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

    .services {
        padding: 50px 0;
    }
    
    .feature-item,
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .contact-info {
        width: 100%;
    }
    .nav-container {
        padding: 0 2%;
    }
}
.blog {
    padding: 100px 0;
}

.blog-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 30px;
}

.header-content {
    flex: 1;
}

.header-content .label {
    color: #0047FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-content h1 {
    color: #0047FF;
    margin-bottom: 15px;
    margin-top: 0;
}

.header-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    max-width: 350px;
}

.view-all-btn {
    background: white;
    color: #0047FF;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #0047FF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: #0047FF;
    color: white;
}

.view-all-btn svg {
    width: 20px;
    height: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.blog-card-meta span:first-child {
    font-weight: 600;
    color: #333;
}

.blog-card-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
}

.blog-card-title {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 80px;
}

.read-more-btn {
    background: #0047FF;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #0039CC;
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
    }
    
    .header-content h1 {
        font-size: 34px;
    }
    
    .view-all-btn {
        align-self: flex-start;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
  .site-footer {
    background: #1F1B3A;
    color: #FFFFFF;
    padding: 28px 0;
    margin-top: 80px;
  }
  
  .footer-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  @media (max-width: 768px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    
    .footer-nav,
    .contact,
    .social {
      border-left: none;
      border-top: 2px dotted #6C64A1;
      padding-left: 0;
      padding-top: 20px;
      align-items: flex-start;
    }
    
    .footer-nav ul {
      padding: 20px 0 0 0;
    }
    
    .contact address,
    .social address {
      padding-left: 0;
      margin-top: 10px;
    }
  }
  
  .site-footer h4 {
    margin: 0 0 10px;
  }
  
  .site-footer a {
    color: #ffffff;
    text-decoration: none;
  }
  
  .site-footer a:hover {
    text-decoration: underline;
  }
  
  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 2px dotted #6C64A1;
    padding-left: 4px;
  }
  
  .footer-nav ul {
    list-style: none;
    margin: 0;
    line-height: 2;
    padding: 40px 0 0 0;
    font-size: 16px;
    display: grid;
  }
  
  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 2px dotted #6C64A1;
  }
  
  .contact address {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    font-style: normal;
    margin-top: 20px;
  }
  
  .contact-info p {
    margin: 4px 0;
    gap: 8px;
    text-align: left;
  }
  
  .contact-info em {
    font-weight: bold;
    font-style: normal; 
    color: #ffffff;
  }
  
  .contact-info img {
    width: 19px;
    height: 22px;
    padding-left: 0px;
    object-fit: contain;
    align-self: flex-start;
  }
  
  .contact .icon,
  .social .icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
  
  .social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 2px dotted #6C64A1;
  }
  
  .social address {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    font-style: normal;
    margin-top: 20px;
  }
  
  .social em {
    font-weight: bold;
    font-style: normal; 
    color: #ffffff;
    font-size: 16px;
    line-height: 18px;
  }
  

  
  .footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 15px;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    background-color: #100D1E;
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
  }
  
  .footer-bottom p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
  }
  
  @media (max-width: 480px) {
    .footer-bottom p {
      font-size: 14px;
    }
  }
  
  /* Utilidades */
  img {
    max-width: 100%;
  }

  /* Encabezado */
.site-header {
    padding: 28px 0 8px;
  }
  .eyebrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 6px;
  }
  .site-header h1 {
    margin: 0 0 10px;
    color: var(--primary);
  }
  .intro {
    color: var(--muted);
    max-width: 720px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
  }

/* Navbar overrides to align menu to the right */
.navbar .container {
    display: block; /* evita el display:flex global de .container */
}
.nav-wrapper {
    width: 100%;
}
.nav-menu {
    margin-left: auto; /* empuja el menú hacia la derecha */
}

/* Compensación por barra superior + navbar fijos */
body {
  padding-top: 120px; /* evita que el menú solape el contenido */
}

@media (max-width: 768px) {
  body { 
    padding-top: 100px; 
  }
}

@media (max-width: 480px) {
  body { 
    padding-top: 90px; 
  }
}

/* Evitar desbordes en el layout de noticias */
.noticias-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px; /* espacio lateral seguro */
}
.main-article,
.sidebar {
    box-sizing: border-box;
    min-width: 0; /* permite que el contenido se ajuste dentro del flex container */
}
.highlight-title,
.news-content h4,
.blog-card-title {
    overflow-wrap: anywhere; /* rompe palabras muy largas */
    word-break: break-word;
}
.image-banner img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS - MEJORAS RESPONSIVAS
   ============================================ */

/* Tablet - 768px y menos */
@media (max-width: 768px) {
    /* Asegurar que todas las secciones se ajusten al ancho */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Secciones principales con ancho completo */
    section,
    .hero,
    .experience,
    .services,
    .blog,
    .testimonios {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Contenedores con ancho completo */
    .container,
    .containers,
    .blog-container,
    .testimonios-container,
    .container-title,
    .noticias-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero Section mejoras */
    .hero-slider {
        height: 500px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        padding: 60px clamp(15px, 4vw, 30px) 40px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-background {
        background-position: center;
        background-size: cover;
    }
    
    /* Container padding mejorado */
    .container,
    .containers,
    .blog-container,
    .noticias-container {
        padding: 0 clamp(15px, 4vw, 30px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Experience section */
    .experience-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .experience-image {
        width: 100% !important;
        overflow: hidden;
    }
    
    .experience-image img {
        width: 100% !important;
        height: auto;
        max-width: 100%;
    }
    
    .experience-content h2 {
        font-size: 28px;
    }
    
    /* Services section */
    .services-header {
        margin-bottom: 40px;
    }
    
    .services-header h2 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .services-subtitle {
        font-size: 15px;
    }
    
    
    
    .service-card-home {
        padding: 25px 20px;
    }
    
    /* Feature items */
    .feature-item {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .feature-item:last-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .feature-item:last-child .feature-text {
        order: 0;
    }
    
    .contact-info {
        width: 100%;
    }
    
    /* Blog section */
    .blog-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .header-content h1 {
        font-size: 32px;
    }
    
    .view-all-btn {
        align-self: flex-start;
        margin-top: 10px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Testimonios */
    .container-title {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .container-title h1 {
        font-size: 32px;
    }
    
    .container-title .intro {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .testimonios-container .container {
        padding: 0 clamp(15px, 4vw, 30px);
    }
    
    /* Tipografía general */
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
}

/* Móvil - 480px y menos */
@media (max-width: 480px) {
    /* Asegurar ancho completo en móvil */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Secciones principales con ancho completo */
    section,
    .hero,
    .experience,
    .services,
    .blog,
    .testimonios {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Contenedores con ancho completo y padding seguro */
    .container,
    .blog-container,
    .testimonios-container,
    .container-title {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 clamp(12px, 4vw, 20px);
    }
    
    /* Hero Section móvil */
    .hero-slider {
        height: 450px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        padding: 50px clamp(12px, 4vw, 20px) 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-indicators-static {
        gap: 8px;
        margin-top: 20px;
    }
    
    .hero-indicator-static {
        width: 8px;
        height: 8px;
    }
    
    /* Containers móvil */
    .container,
    .containers,
    .blog-container {
        padding: 0 clamp(12px, 4vw, 20px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Experience section móvil */
    .experience {
        padding: 40px 0;
    }
    
    .experience-wrapper {
        gap: 25px;
    }
    
    .experience-image {
        width: 100% !important;
        overflow: hidden;
    }
    
    .experience-image img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }
    
    .experience-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .experience-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .section-label {
        font-size: 12px;
    }
    
    /* Services section móvil */
    .services {
        padding: 40px 0;
    }
    
    .services-header h2 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .services-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    
    
    .service-card-home {
        padding: 20px 15px;
    }
    
    .service-card-home h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .service-card-home p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }
    
    /* Feature items móvil */
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    
    .feature-icon img {
        width: 40px;
        height: 40px;
    }
    
    .feature-text h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .feature-text p {
        font-size: 13px;
    }
    
    .feature-item:last-child {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-button {
        width: 100%;
    }
    
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-text {
        font-size: 13px;
    }
    
    .contact-text a {
        font-size: 14px;
    }
    
    /* Blog section móvil */
    .blog {
        padding: 50px 0;
    }
    
    .blog-header {
        margin-bottom: 30px;
    }
    
    .header-content .label {
        font-size: 12px;
    }
    
    .header-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .header-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .view-all-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .blog-card {
        margin-bottom: 0;
    }
    
    .blog-card-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .blog-card-meta {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .read-more-btn {
        font-size: 13px;
    }
    
    /* Testimonios móvil */
    .testimonios {
        padding: 40px 0;

        
    }
    
    .container-title {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .container-title .eyebrow {
        font-size: 12px;
    }
    
    .container-title h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .container-title .intro {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .testimonios-container .container {
        padding: 0 clamp(12px, 4vw, 20px);
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card h3 {
        font-size: 18px;
    }
    
    .card .role {
        font-size: 13px;
    }
    
    .card .quote {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* Tipografía móvil */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    p {
        font-size: 14px;
    }
}

/* Pantallas muy pequeñas - 360px y menos */
@media (max-width: 360px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .services-header h2 {
        font-size: 20px;
    }
    
    .blog-card-title {
        font-size: 15px;
    }
}

/* ============================================
   REGLAS GENERALES PARA AJUSTE DE ANCHO
   ============================================ */

/* Asegurar que todos los elementos principales se ajusten */
@media (max-width: 768px) {
    /* Elementos principales con max-width */
    div, section, article, aside {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Evitar overflow en elementos específicos */
    .hero-slide,
    .hero-background,
    .experience-wrapper,
    .services-grid,
    .blog-grid,
    .testimonios-container,
    .slider,
    .cards {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Asegurar que las imágenes no causen overflow */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Wrappers y contenedores flex */
    .features,
    .feature-item,
    .services-header,
    .blog-header,
    .header-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* Reglas adicionales para móvil - ya aplicadas arriba */
    
    /* Todos los elementos deben ajustarse */
    div, section, article, aside, header, footer {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Evitar desbordes en texto */
    h1, h2, h3, h4, h5, h6, p, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Centrado mejorado para slider-dots - Override para todas las instancias */
.slider-dots {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 24px auto 0 auto !important;
  width: 100% !important;
  position: relative !important;
  text-align: center !important;
}
/* container-form*/
.container-form{
  max-width: 1200px;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 20px
}
@media (max-width: 768px) {
  .contact-form {
    width: 95vw;
    padding: 0 16px;
  }
}
/*  Error */
.validation-error {
  color: #c62828;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #fff5f5;
  border-radius: 0.25rem;
  border-left: 3px solid #c62828;
}

/* ========================================
   FORMULARIO DE CONTACTO PERSONALIZADO
   ======================================== */
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.contact-form-card {
  background: #f4f4f8;
  border: 1px solid var(--border);
  border-radius: 16px 0 0 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.08);
}

.contact-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.5;
  font-weight: 400;
}

.contact-form-custom {
  display: grid;
  gap: 16px;
}

.contact-form-custom input,
.contact-form-custom textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 16px 18px;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.contact-form-custom textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-custom input:focus,
.contact-form-custom textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 35, 239, 0.1);
}

.contact-form-custom input::placeholder,
.contact-form-custom textarea::placeholder {
  color: #999;
  font-weight: 400;
}

.contact-btn-submit {
  appearance: none;
  border: none;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  width: 171px;
  height: 50px;
  margin-left: 150px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.contact-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 35, 239, 0.18);
  background: #0039cc;
}

/* Desktop: layout en filas */
@media (min-width: 900px) {
  .contact-form-custom {
    display: grid;
    gap: 16px;
  }

  .contact-btn-submit {
    justify-self: start;
    margin-top: 12px;
    margin-left: 150px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-form-card {
    border-radius: 16px;
  }
  
  .contact-wrapper {
    padding: 0 8px;
  }
}

/* Tablet - formulario en filas */
@media (max-width: 899px) and (min-width: 601px) {
  .contact-form-custom {
    display: grid;
    gap: 14px;
  }

  .contact-btn-submit {
    justify-self: center;
    margin: 16px auto 0;
    display: block;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .contact-wrapper {
    padding: 0 4px;
  }

  .contact-form-card {
    padding: 20px;
  }

  .contact-intro {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .contact-form-custom {
    display: grid;
    gap: 12px;
  }

  .contact-btn-submit {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 16px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .contact-wrapper {
    padding: 0 2px;
  }

  .contact-form-card {
    padding: 20px;
  }

  .contact-intro {
    font-size: 13px;
  }

  .contact-form-custom {
    gap: 12px;
  }

  .contact-form-custom input,
  .contact-form-custom textarea {
    padding: 14px 16px;
    font-size: 15px;
  }

  .contact-form-custom textarea {
    min-height: 120px;
  }

  .contact-btn-submit {
    width: 100%;
    max-width: 200px;
    height: 48px;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Estilos para el iframe del mapa */
.contact-layout iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.08);
}

@media (max-width: 900px) {
  .contact-layout iframe {
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .contact-layout iframe {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .contact-layout iframe {
    min-height: 300px;
  }
}
/*  Error */
.validation-error {
  color: #c62828;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #fff5f5;
  border-radius: 0.25rem;
  border-left: 3px solid #c62828;
}
/* Overrides y estilos responsivos para la sección Services */
.services {
  background: #150089;
  padding: 80px 0;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

.services .containers {
  margin-left: 0;
  padding-inline: 16px;
}

.services-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 60px 0;
}

.section-label-white {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
}

.services-title-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.services-header h2 {
  font-size: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
  line-height: 1;
}

.services-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.2;
  max-width: 400px;
  margin: 0;
  align-self: flex-end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0; /* conservamos gap 0 para mantener las tarjetas unidas */
  margin-top: 60px;
}

.service-card-home {
  background: linear-gradient(180deg, #110262 0%, #150089 100%);
  padding: 40px 30px;
  border-radius: 13px;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(10px);
}

@media (hover: hover) and (pointer: fine) {
  .service-card-home:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }
}

.service-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon img {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
}

.service-card-home h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card-home p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 992px) {
  .services-header h2 { font-size: 32px; }
  .services-title-wrapper { gap: 14px; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
}

@media (max-width: 768px) {
  .services { padding: 60px 0; }
  .services .containers { padding-inline: 12px; }
  .services-title-wrapper { flex-direction: column; align-items: flex-start; }
  .services-subtitle { max-width: 100%; align-self: auto; }
  .service-card-home { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .services { padding: 48px 0; font-size: 15px; line-height: 1.4; }
  .services-header h2 { font-size: 28px; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
  .service-card-home { border-radius: 12px; }
}

/* ========================================
   RESPONSIVIDAD COMPLETA - TODAS LAS SECCIONES
   ======================================== */

/* ========================================
   TELEVISORES Y PANTALLAS GRANDES (1920px+)
   ======================================== */
@media (min-width: 1920px) {
  .container,
  .blog-container,
  .container-title {
    max-width: 1600px;
  }
  
  .hero-slider {
    height: 750px;
  }
  
  .hero-content h1 {
    font-size: 64px;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 22px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .btn-primary {
    padding: 18px 40px;
    font-size: 18px;
  }
  
  .experience-content h2,
  .services-header h2 {
    font-size: 48px;
  }
  
  .service-card h3 {
    font-size: 28px;
  }
  
  .service-card p {
    font-size: 18px;
  }
  
  .blog-card-title {
    font-size: 26px;
  }
  
  .testimonios .card h3 {
    font-size: 26px;
  }
  
  .testimonios .quote {
    font-size: 18px;
  }
}

/* Hero Section - Responsive */
@media (max-width: 1200px) {
  .hero-slider {
    height: 550px;
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-description {
    font-size: 17px;
  }
}

@media (max-width: 992px) {
  .hero-slider {
    height: 500px;
    top: 60px;
  }
  
  .hero-content {
    max-width: 450px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
  
  .hero-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 450px;
    top: 55px;
  }
  
  .hero-content {
    padding: 40px 20px 30px;
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .hero-arrow {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  
  .hero-arrow-left {
    left: 10px;
  }
  
  .hero-arrow-right {
    right: 10px;
  }
  
  .hero-indicators-static {
    gap: 8px;
    margin-top: 25px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 400px;
    top: 50px;
  }
  
  .hero-content {
    padding: 30px 15px 20px;
  }
  
  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 12px;
  }
  
  .hero-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .hero-arrow {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  
  .hero-indicator-static {
    width: 8px;
    height: 8px;
  }
  
  .hero-indicator-static.active {
    width: 24px;
  }
}

/* Experience Section - Responsive */
@media (max-width: 1200px) {
  .experience-wrapper {
    gap: 50px;
  }
  
  .experience-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .experience {
    padding: 60px 0;
  }
  
  .experience-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .experience-image {
    width: 100%;
  }
  
  .experience-content {
    width: 100%;
  }
  
  .experience-content h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .experience {
    padding: 50px 0;
  }
  
  .experience-wrapper {
    gap: 30px;
  }
  
  .experience-content h2 {
    font-size: 28px;
  }
  
  .experience-description {
    font-size: 15px;
  }
  
  .section-label {
    font-size: 13px;
  }
  
  /* Hacer que los features sean responsivos */
  .feature-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .experience {
    padding: 40px 0;
  }
  
  .experience-content h2 {
    font-size: 24px;
  }
  
  .experience-description {
    font-size: 14px;
  }
  
  .features {
    gap: 15px;
  }
  
  .feature-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  
  .feature-text h3 {
    font-size: 18px;
  }
  
  .feature-text p {
    font-size: 14px;
  }
  
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-text {
    font-size: 14px;
  }
}

/* Services Section - Responsive */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .service-card {
    width: 100%;
    height: auto;
    min-height: 350px;
  }
}

@media (max-width: 992px) {
  .services {
    padding: 60px 0;
  }
  
  .services-header {
    margin-bottom: 40px;
  }
  
  .services-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .services-header h2 {
    font-size: 36px;
  }
  
  .services-subtitle {
    max-width: 100%;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .service-card {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 50px 0;
  }
  
  .services-header h2 {
    font-size: 32px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }
  
  .service-card h3 {
    font-size: 20px;
  }
  
  .service-card p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 40px 0;
  }
  
  .services-header {
    margin-bottom: 30px;
  }
  
  .services-header h2 {
    font-size: 28px;
  }
  
  .services-subtitle {
    font-size: 14px;
  }
  
  .section-label-white {
    font-size: 12px;
  }
  
  .service-card {
    padding: 25px 18px;
    min-height: 300px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .service-icon img {
    width: 40px;
    height: 40px;
  }
}

/* Blog Section - Responsive */
@media (max-width: 992px) {
  .blog {
    padding: 80px 0;
  }
  
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

/* Tablets en orientación landscape */
@media (max-width: 1024px) and (min-width: 769px) {
  .blog {
    padding: 70px 0;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .blog-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .blog {
    padding: 60px 0;
  }
  
  .blog-header {
    margin-bottom: 40px;
    margin-left: 0 !important;
    padding: 0 20px;
  }
  
  .blog-header h1 {
    font-size: 32px;
  }
  
  .blog-header p {
    font-size: 15px;
  }
  
  .blog-header .header-content {
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-card {
    max-width: 100%;
  }
  
  .blog-card-image {
    height: 200px;
  }
  
  .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .blog-card-title {
    font-size: 18px;
    line-height: 1.4;
  }
  
  .blog-card-meta {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .view-all-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .blog {
    padding: 50px 0;
  }
  
  .blog-header {
    margin-bottom: 30px;
  }
  
  .blog-header h1 {
    font-size: 28px;
  }
  
  .blog-header p {
    font-size: 14px;
  }
  
  .blog-card-image {
    height: 180px;
  }
  
  .blog-card-content {
    padding: 18px;
  }
  
  .blog-card-title {
    font-size: 16px;
  }
  
  .blog-card-meta {
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  
  .read-more-btn {
    font-size: 14px;
  }
  
  .view-all-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Testimonios Section - Responsive */
@media (max-width: 1200px) {
  .testimonios {
    margin-left: 80px;
    
  }
  
  .cards {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .testimonios {
    margin-left: 40px;
    padding: 60px 0;
  }
  
  .container-title {
    padding: 0 20px;
  }
  
  .slider {
    padding: 0 50px;
  }
  
  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .testimonios {
    margin-left: 0;
    
    padding: 50px 0;
  }
  
  .container-title {
    padding: 0 20px;
    text-align: center;
  }
  
  .container-title h1 {
    font-size: 32px;
  }
  
  .container-title .eyebrow {
    font-size: 13px;
  }
  
  .intro {
    font-size: 15px;
  }
  
  .intro br {
    display: none;
  }
  
  .testimonios-container {
    padding: 0 15px;
   
  }
  
  .slider {
    padding: 0 40px;
  }
  
  .cards {
    gap: 30px;
    
  }
  
  .card {
    padding: 25px 20px;
    min-height: auto;
  }
  
  .avatar {
    width: 70px;
    height: 70px;
  }
  
  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .slider-dots {
    margin-top: 25px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .testimonios {
    padding: 40px 0;
  }
  
  .container-title {
    padding: 0 15px;
  }
  
  .container-title h1 {
    font-size: 28px;
  }
  
  .container-title .eyebrow {
    font-size: 12px;
  }
  
  .intro {
    font-size: 14px;
  }
  
  .testimonios-container {
    padding: 0 10px;
  }
  
  .slider {
    padding: 0 35px;
  }
  
  .card {
    padding: 20px 15px;
  }
  
  .card h3 {
    font-size: 18px;
    margin: 10px 0 5px;
  }
  
  .card .role {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .quote {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .quote br {
    display: none;
  }
  
  .avatar {
    width: 60px;
    height: 60px;
  }
  
  .stars {
    font-size: 16px;
  }
  
  .slider-prev,
  .slider-next {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  
  .slider-prev {
    left: 5px;
  }
  
  .slider-next {
    right: 5px;
  }
  
  .slider-dots {
    margin-top: 20px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Mission Section - Responsive */
@media (max-width: 992px) {
  .mission-section {
    margin-left: 60px;
  }
  
  .content-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mission-section {
    margin-left: 0;
    padding: 40px 20px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .numbers-title {
    font-size: 32px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mission-section {
    padding: 30px 15px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .numbers-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .value-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Business Section - Responsive */

/* Tablets y pantallas medianas */
@media (max-width: 1200px) {
  .layout-principal {
    max-width: 100%;
    padding: 20px;
  }
  
  /* Eliminar márgenes negativos en tablets */
  .breadcrumb[style*="margin-left"],
  .contenido-izquierdo[style*="margin-top"],
  .contenido-izquierdo {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  
  .contenido-izquierdo {
    flex: 1 1 100%;
    padding: 20px;
  }
  
  .imagen-derecha {
    flex: 1 1 100%;
    padding: 20px;
  }
  
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .layout-principal {
    padding: 15px;
  }
  
  .layout-flex {
    flex-direction: column;
    gap: 15px; /* Reducido de 30px a 15px */
  }
  
  .contenido-izquierdo {
    width: 100%;
    flex: 1 1 100%;
    padding: 10px;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px; /* Espacio mínimo abajo */
  }
  
  .imagen-derecha {
    width: 100%;
    flex: 1 1 100%;
    padding: 10px;
    margin-top: 0; /* Sin espacio extra arriba */
  }
  
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Reducido de 12px a 10px */
    margin-bottom: 15px; /* Espacio antes de la imagen */
  }
  
  /* Experiencia en tablets */
  .experiencia {
    padding: 25px 0;
    margin-top: 0 !important;
  }
  
  .experiencia-grid {
    gap: 15px;
  }
  
  .texto-experiencia {
    padding: 1px;
    margin-top: -10px;
  }
}

@media (max-width: 768px) {
  .layout-principal {
    padding: 12px;
    max-width: 100%;
  }
  
  .layout-principal header {
    margin-left: 0 !important;
    padding: 0;
    margin-bottom: 10px;
  }
  
  .breadcrumb {
    margin-left: 0 !important;
    padding: 8px 0;
  }
  
  .layout-flex {
    flex-direction: column;
    gap: 12px; /* Reducido de 20px a 12px */
  }
  
  .contenido-izquierdo {
    width: 100%;
    padding: 8px;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 8px;
  }
  
  .contenido-izquierdo h1 {
    font-size: 24px;
    text-align: left;
    margin-bottom: 12px;
  }
  
  .contenido-izquierdo h2 {
    font-size: 20px;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 15px;
  }
  
  .contenido-izquierdo h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .contenido-izquierdo p {
    font-size: 16px;
    text-align: left;
    margin-bottom: 15px;
  }
  
  .imagen-derecha {
    width: 100%;
    padding: 8px;
    margin-top: 0;
  }
  
  .imagen-derecha img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .texto-bajo-imagen {
    margin-top: 8px;
  }
  
  .grid-servicios {
    grid-template-columns: 1fr;
    gap: 8px; /* Reducido de 10px a 8px */
    margin-bottom: 12px;
  }
  
  .celda {
    padding: 10px;
  }
  
  .experiencia {
    padding: 20px 0; /* Reducido de 40px a 20px */
    margin-top: 0 !important;
  }
  
  .experiencia-grid {
    flex-direction: column;
    gap: 12px; /* Reducido de 15px a 12px */
  }
  
  .imagen-experiencia {
    margin-bottom: 10px;
  }
  
  .texto-experiencia {
    padding: 1px;
    margin-top: -230px;
  }
  
  .texto-experiencia h1 {
    margin-top: 8px;
    margin-bottom: 10px;
  }
  
  .texto-experiencia h4 {
    margin-bottom: 8px;
  }
  
  .texto-experiencia p {
    margin-bottom: 10px;
  }
  
  .experiencia[style*="margin-top"] {
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .layout-principal {
    padding: 10px;
    max-width: 100%;
  }
  
  .layout-flex {
    gap: 10px; /* Espacio mínimo entre secciones */
  }
  
  .contenido-izquierdo {
    padding: 6px;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 6px;
  }
  
  .contenido-izquierdo h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .contenido-izquierdo h2 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    margin-top: 12px;
  }
  
  .contenido-izquierdo h4 {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .contenido-izquierdo p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .imagen-derecha {
    padding: 6px;
    margin-top: 0;
  }
  
  .imagen-derecha img {
    margin-bottom: 8px;
  }
  
  .texto-bajo-imagen {
    margin-top: 6px;
    font-size: 13px;
  }
  
  .grid-servicios {
    grid-template-columns: 1fr;
    gap: 6px; /* Reducido de 8px a 6px */
    margin-bottom: 10px;
  }
  
  .celda {
    padding: 8px;
    font-size: 13px;
  }
  
  .celda img {
    width: 35px;
    height: 35px;
  }
  
  .experiencia {
    padding: 15px 0; /* Reducido aún más para móviles pequeños */
    margin-top: 0 !important;
  }
  
  .experiencia-grid {
    gap: 10px; /* Reducido para móviles pequeños */
  }
  
  .imagen-experiencia {
    margin-bottom: 8px;
  }
  
  .imagen-experiencia img {
    width: 100%;
    height: auto;
  }
  
  .texto-experiencia {
    padding: 8px;
  }
  
  .texto-experiencia h1 {
    font-size: 20px;
    margin-top: 6px;
    margin-bottom: 8px;
  }
  
  .texto-experiencia h4 {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .texto-experiencia p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
  }
}

/* Contact Section - Responsive */
@media (max-width: 992px) {
  .contact-wrapper {
    padding: 20px;
  }
  
  .contact-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-form-card {
    width: 100%;
  }
  
  .contact-layout section {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 0;
  }
  
  .site-header .container {
    margin-top: 0;
  }
  
  .contact-wrapper {
    padding: 15px;
    margin-left: 0 !important;
  }
  
  .contact-form-card {
    padding: 20px;
  }
  
  .contact-layout iframe {
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 28px;
  }
  
  .intro {
    font-size: 14px;
  }
  
  .contact-wrapper {
    padding: 12px;
  }
  
  .contact-form-card {
    padding: 18px;
  }
  
  .contact-layout iframe {
    min-height: 300px;
  }
  
  .contact-btn-submit {
    width: 100%;
    padding: 14px;
  }
}

/* Noticias Section - Responsive */
@media (max-width: 1200px) {
  /* Eliminar márgenes inline en tablets grandes */
  header[style*="margin-left"],
  .noticias-container[style*="margin-left"] {
    margin-left: 0 !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .noticias-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .main-article,
  .sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .noticias-container {
    flex-direction: column;
    gap: 30px;
    margin-left: 0 !important;
    padding: 0 2rem;
  }
  
  .main-article {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header[style*="margin-left"] {
    margin-left: 0 !important;
    padding: 0 20px;
  }
  
  .noticias-container {
    margin-left: 0 !important;
    padding: 0 20px;
  }
  
  .main-article {
    padding: 20px;
  }
  
  .news-card {
    flex-direction: column;
  }
  
  .news-card img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .noticias-container {
    padding: 0 15px;
  }
  
  .main-article {
    padding: 15px;
  }
  
  .highlight-title {
    font-size: 20px;
  }
  
  .main-article p {
    font-size: 14px;
  }
  
  .sidebar h3 {
    font-size: 20px;
  }
  
  .news-card {
    padding: 15px;
  }
}

/* Breadcrumb - Responsive */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 14px;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12px;
    padding: 8px 0;
  }
}

/* General Responsive Improvements */

/* Eliminar márgenes inline en tablets y móviles */
@media (max-width: 1024px) {
  [style*="margin-left: 8rem"],
  [style*="margin-left: 11.5rem"],
  [style*="margin-left: 120px"],
  [style*="margin-left: 3.0rem"],
  [style*="margin-left: 3rem"],
  [style*="margin-left"] {
    margin-left: 0 !important;
  }
  
  .blog-header[style*="margin-left"] {
    margin-left: 0 !important;
    padding-left: 30px;
  }
  
  .testimonios[style*="margin-left"] {
    margin-left: 0 !important;
  }
  
  /* Asegurar que los contenedores usen todo el ancho */
  .container,
  .blog-container,
  .container-title {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  /* Eliminar márgenes fijos problemáticos */
  [style*="margin-left: 8rem"],
  [style*="margin-left: 11.5rem"],
  [style*="margin-left: 120px"],
  [style*="margin-left: 3.0rem"] {
    margin-left: 0 !important;
    padding: 0 20px;
  }
  
  /* Mejorar tamaño de botones para táctil */
  button,
  .btn-primary,
  .btn-secondary,
  a.btn-primary,
  a.btn-secondary {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  /* Asegurar que no haya overflow horizontal */
  * {
    max-width: 100%;
  }
  
  /* Mejorar espaciado general */
  section {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Asegurar tamaño mínimo táctil para todos los elementos interactivos */
  button,
  a,
  input[type="submit"],
  input[type="button"],
  .btn-primary,
  .btn-secondary,
  .hero-arrow,
  .slider-prev,
  .slider-next {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Mejorar legibilidad de texto */
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }
  
  /* Optimizar imágenes */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* ========================================
   PANTALLAS MUY PEQUEÑAS (320px - 375px)
   ======================================== */
@media (max-width: 375px) {
  .hero-slider {
    height: 350px;
  }
  
  .hero-content h1 {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 11px;
  }
  
  .hero-description {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .experience-content h2 {
    font-size: 20px;
  }
  
  .services-header h2 {
    font-size: 24px;
  }
  
  .service-card {
    padding: 20px 15px;
  }
  
  .blog-header h1 {
    font-size: 24px;
  }
  
  .blog-card-title {
    font-size: 15px;
  }
  
  .container-title h1 {
    font-size: 24px;
  }
  
  .card {
    padding: 18px 12px;
  }
  
  .quote {
    font-size: 13px;
  }
}

/* ========================================
   TABLETS (768px - 1024px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-slider {
    height: 500px;
  }
  
  .experience-wrapper {
    flex-direction: row;
    gap: 40px;
  }
  
  .experience-image,
  .experience-content {
    width: 50%;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .blog-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Asegurar que los contenedores sean responsivos */
  .container,
  .blog-container,
  .container-title {
    max-width: 100%;
    padding: 0 30px;
  }
  
  /* Eliminar márgenes fijos en tablets */
  [style*="margin-left"] {
    margin-left: 0 !important;
    padding-left: 30px;
  }
  
  .blog-header {
    margin-left: 0 !important;
    padding: 0 30px;
  }
  
  .testimonios {
    margin-left: 0 !important;
    padding: 60px 30px;
  }
  
  .testimonios-container {
    padding: 0 20px;
  }
}

/* ========================================
   iPAD AIR / iPAD PRO 11" (820px - 834px)
   ======================================== */
@media (min-width: 820px) and (max-width: 834px) {
  /* Hero optimizado para iPad Air/Pro 11" */
  .hero-slider {
    height: 520px;
  }
  
  .hero-content h1 {
    font-size: 40px;
  }
  
  /* Services en 2 columnas */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .service-card {
    width: 100%;
    height: auto;
    min-height: 320px;
  }
  
  /* Blog en 2 columnas */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  /* Testimonios optimizados */
  .cards {
    gap: 40px !important; /* Aumentado para mejor separación */
    padding: 50px 20px 0 20px;
  }
  
  .card {
    padding: 40px 30px;
    margin-top: 0;
  }
  
  .avatar {
    width: 85px;
    height: 85px;
    top: -42px;
  }
  
  /* Asegurar padding consistente */
  .container,
  .blog-container {
    padding: 0 40px;
  }
  
  /* Asegurar que el menú hamburguesa esté visible */
  .nav-toggle {
    display: block !important;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.open {
    display: flex !important;
  }
}

/* ========================================
   iPAD PRO 12.9" (1024px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1024px) {
  /* Hero optimizado para iPad Pro 12.9" */
  .hero-slider {
    height: 550px;
  }
  
  .hero-content h1 {
    font-size: 44px;
  }
  
  /* Services en 3 columnas para aprovechar el espacio */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .service-card {
    width: 100%;
    height: auto;
    min-height: 340px;
  }
  
  /* Blog en 3 columnas */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  /* Testimonios con mejor espaciado */
  .cards {
    gap: 45px !important; /* Aumentado para iPad Pro 12.9" */
    padding: 50px 20px 0 20px;
  }
  
  .card {
    padding: 45px 35px;
    margin-top: 0;
  }
  
  .avatar {
    width: 90px;
    height: 90px;
    top: -45px;
  }
  
  /* Contenedores optimizados */
  .container,
  .blog-container {
    max-width: 100%;
    padding: 0 40px;
  }
  
  /* Eliminar márgenes problemáticos */
  .blog-header {
    margin-left: 0 !important;
    padding: 0 40px;
  }
  
  .testimonios {
    margin-left: 0 !important;
    padding: 60px 40px;
  }
}

/* ========================================
   iPAD - ORIENTACIÓN PORTRAIT
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-slider {
    height: 500px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .experience-wrapper {
    flex-direction: column;
  }
  
  .experience-image,
  .experience-content {
    width: 100%;
  }
  
  /* Asegurar que no haya márgenes problemáticos */
  .blog-header,
  .testimonios,
  [style*="margin-left"] {
    margin-left: 0 !important;
  }
  
  /* Testimonios en portrait */
  .cards {
    gap: 40px !important;
    padding: 50px 15px 0 15px;
  }
  
  .card {
    padding: 40px 30px;
  }
}

/* ========================================
   iPAD - ORIENTACIÓN LANDSCAPE
   ======================================== */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-slider {
    height: 550px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .experience-wrapper {
    flex-direction: row;
  }
  
  .experience-image,
  .experience-content {
    width: 50%;
  }
  
  /* Contenedores optimizados para landscape */
  .container,
  .blog-container {
    max-width: 100%;
    padding: 0 50px;
  }
  
  /* Eliminar márgenes en landscape */
  .blog-header,
  .testimonios,
  [style*="margin-left"] {
    margin-left: 0 !important;
  }
  
  /* Testimonios en landscape */
  .cards {
    gap: 45px !important;
    padding: 50px 20px 0 20px;
  }
  
  .card {
    padding: 45px 35px;
  }
}

/* ========================================
   ORIENTACIÓN LANDSCAPE EN MÓVILES
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slider {
    height: 400px;
  }
  
  .hero-content {
    padding: 20px 15px;
  }
  
  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .hero-description {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .btn-primary {
    padding: 10px 20px;
  }
  
  .hero-indicators-static {
    margin-top: 15px;
  }
  
  /* Ajustar navegación en landscape */
  .navbar {
    padding: 8px 0;
  }
  
  .nav-menu {
    max-height: 300px;
    overflow-y: auto;
  }
}

/* ========================================
   MEJORAS FINALES DE ACCESIBILIDAD Y UX
   ======================================== */

/* Asegurar que todos los enlaces y botones sean accesibles */
@media (hover: none) and (pointer: coarse) {
  /* Dispositivos táctiles */
  button,
  a,
  .btn-primary,
  .btn-secondary,
  .hero-arrow,
  .slider-prev,
  .slider-next,
  .nav-toggle {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Mejorar espaciado entre elementos táctiles */
  .nav-menu li {
    margin-bottom: 8px;
  }
  
  .hero-indicators-static {
    gap: 12px;
  }
  
  .slider-dots {
    gap: 12px;
  }
}

/* Optimización para impresión */
@media print {
  .top-bar,
  .navbar,
  .hero-arrow,
  .slider-prev,
  .slider-next,
  .hero-indicators-static,
  .slider-dots,
  .nav-toggle,
  .site-footer {
    display: none !important;
  }
  
  .hero-slider {
    position: static;
    height: auto;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modo oscuro del sistema (opcional) */
@media (prefers-color-scheme: dark) {
  /* Mantener el diseño actual pero mejorar contraste si es necesario */
  .blog {
    background: #fff !important;
  }
  
  .blog-card {
    background: #fff !important;
  }
}

