
/* ===== 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;
}


/* ===== 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;
}

/* Flecha */
.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 ===== */
@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 ===== */
.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);
}

/* ===== SECCIÓN SERVICIOS ===== */
.servicios {
  background: #fff;
  padding: 4rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border: 1px solid #eee;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s;
}

.card-link:hover {
  gap: 1rem;
}

.card-link span {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.card-link:hover span {
  transform: translateX(5px);
}

/* ===== SECCIÓN CONTACTO ===== */
.contacto {
  background: #f5f9ff;
  padding: 4rem 1rem;
}

.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: #4a90e2;
  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: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}

.contacto-item a:hover {
  text-decoration: underline;
}

/* Formulario */
.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: #4a90e2;
}

.contacto-form button {
  padding: 1rem;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.contacto-form button:hover {
  background: #357abd;
}

/* ===== 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;
  }
}
/* ===== SECCIÓN CASOS DE ÉXITO ===== */
.casos-exito {
  padding: 4rem 1rem;
  background-color: #f5f9ff; /* Fondo suave que combina con el azul */
}

.casos-exito .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  color: #005baa; /* Azul corporativo */
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Galería expandible (hover) */
.galeria-expandible {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 400px;
  width: 100%;
}

.galeria-item {
  position: relative;
  flex-grow: 1;
  width: 5rem; /* Base angosta */
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.galeria-item:hover {
  width: 100%; /* Se expande al pasar el mouse */
}

.galeria-item:hover img {
  transform: scale(1.05); /* Ligero zoom */
}

/* Overlay con descripción */
.galeria-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 91, 170, 0.9), transparent);
  color: white;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: left;
}

.galeria-item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.overlay p {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .galeria-expandible {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .galeria-item {
    width: 100%;
    height: 300px;
  }

  .galeria-item:hover {
    width: 100%; /* En móvil no hay hover expandido */
  }

  .overlay {
    transform: translateY(0); /* Siempre visible en móvil */
    background: linear-gradient(to top, rgba(0, 91, 170, 0.8), transparent);
  }
}
/* ===== 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);
}