/* ===== Global ===== */
body, html {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Segoe UI', sans-serif !important;
  color: #050505 !important;
  background-color: #90adf0 !important;
  background-image: url("img/fondo.png") !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
}

* {
  box-sizing: border-box !important;
  font-family: Arial, sans-serif !important;
}

/* ===== HEADER ===== */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
}

/* ===== NAV DESKTOP ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 70px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #005baa;
  border-bottom-color: #005baa;
  background: transparent;
}

/* ===== SUBMENÚ DESKTOP ===== */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 2px solid #005baa;
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  min-width: 280px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #444;
  font-size: 13.5px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: normal;
}

.sub-menu li a:hover {
  background: #f0f7ff;
  color: #005baa;
  border-left-color: #005baa;
}

.arrow {
  font-size: 0.65rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.25s;
}

.menu-item-has-children:hover .arrow {
  transform: rotate(180deg);
}

/* ===== HAMBURGUESA ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: #005baa;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }

  .nav.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: all;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links > li > a {
    height: auto;
    padding: 14px 24px;
    justify-content: space-between;
    border-bottom: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    background: #f5faff;
    border-bottom: none;
  }

  .sub-menu {
    position: static !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f8f9fb !important;
    padding: 0 !important;
    min-width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
  }

  .menu-item-has-children.submenu-open .sub-menu {
    max-height: 500px;
  }

  .menu-item-has-children.submenu-open .arrow {
    transform: rotate(180deg);
  }

  .sub-menu li a {
    padding: 11px 24px 11px 38px !important;
    border-left: none !important;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #555;
  }

  .sub-menu li a:hover {
    background: #e0f0ff !important;
    color: #005baa !important;
    border-left: none !important;
  }
}

/* ===== HERO PRINCIPAL ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 400px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #222;
}

.hero-content h1 span {
  color: #4a90e2;
}

.hero-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn-primary {
  background: #4a90e2;
  color: white;
}

.btn-primary:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #4a90e2;
  color: #4a90e2;
}

.btn-outline:hover {
  background: #4a90e2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.hero-image {
  flex: 1 1 400px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== HERO DE PÁGINA ===== */
.hero-pagina {
  background: linear-gradient(135deg, #005baa 0%, #003f7f 100%);
  color: white;
  padding: 4rem 1.5rem;
  margin-top: 70px;
}

.hero-pagina .container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-pagina h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-pagina p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 800px;
  opacity: 0.95;
  line-height: 1.6;
}

/* ===== MAIN Y CONTENEDOR ===== */
main {
  padding: 3rem 1rem !important;
}

main .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== SECCIONES GENÉRICAS ===== */
section {
  padding: 0;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  color: #005baa;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== TEXTO DESCRIPCIÓN CENTRADO ===== */
.section-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: #555;
  line-height: 1.7;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===== GRIDS ===== */
.grid-3, .grid-4 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===== TARJETAS ===== */
.card {
  background: #f5f9ff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 91, 170, 0.1);
}

.card i, .card .icon {
  font-size: 3rem;
  color: #005baa;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.card p {
  color: #555;
}

/* ===== FEATURE BLOCKS (Características) ===== */
.features-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Reemplaza el flex de Tailwind del HTML */
.flex.flex-col.items-center.justify-center.gap-6.flex-wrap,
[class*="flex"][class*="flex-wrap"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
}

.feature-block {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  background-color: #f5f9ff;
  border: 1px solid #e0f0ff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 91, 170, 0.1);
}

.feature-icon {
  padding: 1rem;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-icon i {
  font-size: 1.8rem;
  color: #005baa;
}

/* ===== PASOS NUMERADOS ===== */
.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.paso {
  text-align: center;
}

.paso-numero {
  background: #005baa;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.paso h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.paso p {
  color: #555;
  font-size: 0.9rem;
}

/* ===== TABLA DE TARIFAS ===== */
.tabla-tarifas-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tabla-tarifas {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  margin: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.tabla-tarifas th {
  background: #005baa;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  white-space: nowrap;
}

.tabla-tarifas td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.tabla-tarifas tr:last-child td {
  border-bottom: none;
}

.tabla-tarifas tr:hover {
  background: #f5f9ff;
}

/* ===== LISTA CON ICONOS ===== */
.lista-iconos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.lista-iconos-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lista-iconos-item i {
  font-size: 2rem;
  color: #005baa;
}

/* ===== SECCIÓN DE CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contacto-info .badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: #e0f0ff;
  color: #005baa;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contacto-info h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
}

.contacto-info > p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contacto-item svg {
  width: 30px;
  height: 30px;
  color: #005baa;
  flex-shrink: 0;
}

.contacto-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #333;
}

.contacto-item p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.contacto-item a, .contacto-item span {
  font-size: 0.9rem;
  color: #005baa;
  text-decoration: none;
  font-weight: 500;
}

.contacto-item a:hover {
  text-decoration: underline;
}

.contacto-form {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contacto-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  width: 100%;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: #005baa;
}

.contacto-form button {
  padding: 1rem;
  background: #005baa;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.contacto-form button:hover {
  background: #004080;
}

/* ===== FOOTER ===== */
.footer-empresarial {
  background: #1a1a1a;
  color: #eee;
  padding: 3rem 1rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-logo-section {
  flex: 1.5 1 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.footer-logo-section p {
  margin-top: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #333;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover:nth-child(1) { background: #1877f2; }
.social-icon:hover:nth-child(2) { background: #1da1f2; }
.social-icon:hover:nth-child(3) { background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5); }
.social-icon:hover { transform: translateY(-3px); }

.footer-links, .footer-contacto {
  flex: 1 1 180px;
}

.footer-links h4, .footer-contacto h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #b0d8ff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contacto p {
  line-height: 1.6;
  margin: 0.5rem 0;
}

.footer-contacto p a {
  color: #b0d8ff;
  text-decoration: none;
}

.footer-contacto p a:hover {
  text-decoration: underline;
}

.footer-legal-bar {
  background: #1a1a1a;
  margin-top: 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid #444;
}

.footer-legal-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-legal-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.footer-legal-links a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.footer-copyright {
  color: #888;
  font-size: 0.95rem;
}

/* ================================================================
   BREAKPOINTS RESPONSIVOS
   ================================================================ */

/* ── Tabletas (hasta 1024px) ── */
@media (max-width: 1024px) {
  .pasos {
    grid-template-columns: repeat(3, 1fr);
  }

  .contacto-grid {
    gap: 2rem;
  }
}

/* ── Tabletas pequeñas (hasta 768px) ── */
@media (max-width: 768px) {

  /* Hero pagina */
  .hero-pagina {
    padding: 2.5rem 1rem;
    margin-top: 70px;
  }

  /* Main */
  main {
    padding: 2rem 1rem !important;
  }

  section {
    margin-bottom: 2.5rem;
  }

  /* Texto descriptivo central en ¿Qué es? */
  section > p[style*="text-align: center"] {
    font-size: 0.95rem !important;
    padding: 0 0.5rem;
  }

  /* Feature blocks: 1 columna en móvil */
  .flex.flex-col.items-center.justify-center.gap-6.flex-wrap,
  [class*="flex"][class*="flex-wrap"] {
    grid-template-columns: 1fr !important;
  }

  .feature-block {
    max-width: 100%;
    padding: 1rem;
  }

  /* Pasos: 2 columnas en tablet */
  .pasos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Tabla: scroll horizontal */
  .tabla-tarifas {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Párrafo de tarifas */
  section p[style*="text-align: center"] {
    font-size: 0.9rem !important;
    padding: 0 0.25rem;
  }

  /* Contacto: 1 columna */
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto-form {
    padding: 1.5rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-legal-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal-links {
    gap: 1.5rem;
    justify-content: center;
  }

  .footer-legal-links a:not(:last-child)::after {
    right: -1rem;
  }
}

/* ── Móviles (hasta 480px) ── */
@media (max-width: 480px) {

  /* Hero */
  .hero-pagina {
    padding: 2rem 1rem;
  }

  /* Pasos: 1 columna en móvil pequeño */
  .pasos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Paso con número alineado */
  .paso {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .paso-numero {
    margin: 0;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .paso h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  /* Tabla note */
  section > p[style*="font-size: 0.9rem"] {
    font-size: 0.82rem !important;
  }

  /* Contacto form */
  .contacto-form {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .contacto-form input,
  .contacto-form textarea {
    font-size: 0.95rem;
    padding: 0.85rem;
  }

  /* Footer legal */
  .footer-legal-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .footer-legal-links a:not(:last-child)::after {
    display: none;
  }
}
/* ===== CONTACTO - FORMULARIO GOOGLE FORMS ===== */

/* Contenedor general de la columna del formulario */
.contacto-form {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Contenedor del iframe (fondo blanco, sombra, bordes redondeados) */
.google-form-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.3s ease;
}

/* Iframe: ocupará todo el ancho y tendrá una altura fija que se ajusta en móviles */
.google-form-container iframe {
  width: 100%;
  height: 691px; /* altura original del iframe */
  border: none;
  display: block;
  background: #fff;
}

/* Ajuste para pantallas medianas (tablets) */
@media (max-width: 768px) {
  .google-form-container iframe {
    height: 780px;
  }
}

/* Ajuste para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
  .google-form-container iframe {
    height: 850px;
  }
}

/* Efecto hover sutil en el contenedor (opcional) */
.google-form-container:hover {
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.2);
}