/* ===== Global ===== */
body, html {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Segoe UI', sans-serif !important;
  color: #050505 !important;
  /* Nuevo fondo */
  background-color: #90adf0 !important;
  background-image: url("img/fondo.png") !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
}

 
/* RESET BÁSICO */
* {
  box-sizing: border-box !important;
  font-family: Arial, sans-serif !important;
}

/* ===== HEADER MEJORADO ===== */
.header {
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(194, 177, 177, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.logo img {
  height: 50px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-links {
    list-style: none !important;
    display: flex !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links a {
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    
}

.nav-links a.active,
.nav-links a:hover {
  background: #e0f0ff;
  color: #005baa;
}

/* Submenús */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 5px);
}

.sub-menu a {
  padding: 0.7rem 1.5rem;
  color: #333;
  white-space: nowrap;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.sub-menu a:hover {
  background: #4a90e2;
  color: white;
}

.arrow {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s;
}

.menu-item-has-children:hover .arrow {
  transform: rotate(180deg);
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #005baa;
  border-radius: 10px;
  transition: all 0.3s linear;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease, visibility 0.3s;
    visibility: hidden;
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-links li {
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    text-align: center;
    padding: 1rem;
  }

  /* Submenús en móvil */
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    padding-left: 1.5rem;
    min-width: auto;
    background: transparent;
  }

  .menu-item-has-children.submenu-open .sub-menu {
    display: block;
  }

  .menu-item-has-children.submenu-open .arrow {
    transform: rotate(180deg);
  }

  .sub-menu a {
    white-space: normal;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: #555;
  }

  .sub-menu a:hover {
    background: #e0f0ff;
    color: #005baa;
  }
}
/* ===== HERO DE PÁGINA (usado en servicios, arbitraje, etc.) ===== */
.hero-pagina {
  background: linear-gradient(135deg, #005baa 0%, #003f7f 100%);
  color: white;
  padding: 4rem 1rem;
  margin-top: 70px; /* Para no quedar debajo del header */
}

.hero-pagina h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-pagina p {
  font-size: 1.2rem;
  max-width: 800px;
  opacity: 0.95;
}

/* ===== SECCIONES GENÉRICAS ===== */
section {
  padding: 4rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #005baa;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== TARJETAS PARA BENEFICIOS / SERVICIOS ===== */
.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));
}

.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;
}

/* ===== PASOS NUMERADOS (como en cómo funciona) ===== */
.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 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;
}

.paso h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.paso p {
  color: #555;
}

/* ===== LISTAS CON ICONOS (para características, requisitos, etc.) ===== */
.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 (la que usamos en servicios) ===== */
.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: 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;
}

/* Formulario de contacto */
.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;
}

.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;
}

.contacto-form button:hover {
  background: #004080;
}

/* ===== ESTILOS ADICIONALES PARA ARBITRAJE ===== */
/* Bloques de características (feature-block) */
.feature-block {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem 1rem 1rem;
  gap: 1.5rem;
  max-width: 28rem;
  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: 1.2rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

/* Tabla de tarifas (como en amigable) */
.tabla-tarifas {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tabla-tarifas th {
  background: #005baa;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

.tabla-tarifas td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eee;
}

.tabla-tarifas tr:last-child td {
  border-bottom: none;
}

.tabla-tarifas tr:hover {
  background: #f5f9ff;
}

/* Modelos de cláusulas */
.clausulas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.clausula-card {
  background: #f5f9ff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e0f0ff;
}

.clausula-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #005baa;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clausula-card p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.clausula-card .badge {
  display: inline-block;
  background: #005baa;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}





/* ===== 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 200px;
}

.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;
}

/* Barra legal */
.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: 2rem;
}

.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;
}

@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .footer-legal-links {
    gap: 1rem;
    flex-direction: column;
  }
  .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);
}