/* ==================================================
   VARIABLES Y TIPOGRAFÍA
================================================== */
:root {
  --azul-oscuro: #0B131F;
  --azul-profundo: #132D44;
  --naranja: #DD661A;
  --blanco: #FFFFFF;
  --gris-claro: #F5F7FA;
}

@font-face {
  font-family: Montserrat;
  src: url(/themes/comexiatema/comexiatema/Montserrat-VariableFont_wght.ttf);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f7f9fb;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  padding-top: 100px;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--gris-claro);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e0e0e0;
}

.site-logo {
  position: relative;
  z-index: 1001;
}

.site-logo img {
  height: 80px;
  width: auto;
  display: block;
  filter: none;
  position: relative;
  z-index: 1001;
}

.navbar-nav {
  gap: 1.5rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1001;
  position: relative;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul-profundo);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--naranja);
  border-bottom: 2px solid var(--naranja);
  outline: none;
}
/* ==================================================
   HERO / ENCABEZADO PRINCIPAL
================================================== */
.hero-section {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--azul-oscuro) 20%, var(--azul-profundo) 80%);
  color: var(--blanco);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.4;
  padding: 0 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: #e0eaf4;
  line-height: 1.7;
  margin: 0 auto 2.5rem auto;
  max-width: 700px;
}

.hero-btn {
  font-size: 1rem;
  padding: 0.75rem 1.2rem;
  width: 90%;
  max-width: 300px;
  display: inline-block;
  background-color: var(--naranja) !important;
  color: var(--blanco) !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background-color: #c95712 !important;
  color: var(--blanco) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
/* ==================================================
   SECCIÓN NOSOTROS
================================================== */
.nosotros-section {
  width: 100%;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-profundo));
  border-radius: 14px;
  text-align: center;
}

.nosotros-section .section-title {
  color: var(--blanco);
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.nosotros-inner {
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.nosotros-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.nosotros-card:hover {
  transform: translateY(-6px);
}

.nosotros-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
  padding: 0;
}

.nosotros-card ul {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding-left: 1.5rem;
  text-align: left;
  display: inline-block;
  transition: all 0.4s ease-in-out;
}

.nosotros-card:hover ul {
  opacity: 1;
  max-height: 300px;
}

.nosotros-card ul li::before {
  content: "•";
  color: var(--naranja);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.nosotros-card h3 {
  font-size: 1.25rem;
  color: var(--azul-profundo);
  font-weight: 700;
  margin-bottom: 1rem;
}

.nosotros-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.nosotros-card:hover p {
  opacity: 1;
  max-height: 300px;
}
/* ==================================================
   SECCIÓN SERVICIOS
================================================== */
.servicios-section {
  background-color: #F7F9FB;
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--azul-profundo);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--naranja);
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1232px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.servicio-card {
  margin: 1.2rem auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icono-servicio {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icono-servicio img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.servicio-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--azul-profundo);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.servicio-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s ease, max-height 0.6s ease, transform 0.4s ease;
}

.servicio-card:hover p {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
}
/* ==================================================
   SECCIÓN PREGUNTAS FRECUENTES — FAQ
================================================== */
.view-servicios {
  background-color: #ffffff;
  padding: 4rem 2rem;
  max-width: 1232px;
  margin: 0 auto;
}

.view-servicios h2 {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: var(--azul-profundo);
  margin-bottom: 2rem;
  position: relative;
}

.view-servicios h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--naranja);
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

.views-view-responsive-grid__item {
  background: #f7f9fb;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.views-view-responsive-grid__item:hover {
  transform: translateY(-4px);
}

.views-field-title {
  margin-bottom: 0.75rem;
}

.views-field-title .field-content {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul-profundo);
  display: block;
}

.views-field-body .field-content p,
.views-field-body p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.views-view-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-header-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-header-wrapper .faq-icon-wrapper {
  margin-top: 1rem;
}

.faq-header-wrapper img {
  display: inline-block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}
/* ==================================================
   FOOTER Y CONTACTO
================================================== */
footer.bg-secondary {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 4px solid var(--naranja);
}

.contacto-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #F4F7FA;
}

.contacto-texto {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.contacto-redes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.contacto-redes img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.contacto-redes img:hover {
  transform: scale(1.15);
}

.contacto-detalles p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.contacto-detalles a {
  color: var(--azul-oscuro);
  text-decoration: none;
}

.contacto-detalles a:hover {
  text-decoration: underline;
}
/* ==================================================
   UTILITARIOS Y OTROS
================================================== */
.negrita {
  font-weight: 600;
}

.oculto {
  color: #fff0;
}

.section-wrapper {
  margin-top: 4rem;
  margin-bottom: 5rem;
}

header {
  margin-bottom: 2rem;
}

html {
  scroll-behavior: smooth;
}

/* ==================================================
   OPTIMIZACIÓN PARA CELULARES
================================================== */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .hero-btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1.5rem;
  }

  .servicio-card {
    width: 90%;
    padding: 1rem;
    margin: 0 auto;
  }

  .icono-servicio {
    height: 80px;
  }

  .icono-servicio img {
    max-width: 70px;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1.5rem;
  }

  .nosotros-card {
    width: 90%;
    padding: 1.5rem 1rem;
    margin: 0 auto;
  }

  .view-servicios {
    padding: 2rem 1rem;
  }

  .views-view-responsive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-header-wrapper img {
    width: 64px;
    height: 64px;
  }

  footer.bg-secondary {
    padding: 2rem 1rem;
  }

  .contacto-texto {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .contacto-redes {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .contacto-detalles p {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ==================================================
   ANIMACIONES DE ENTRADA (TODAS LAS VERSIONES)
================================================== */
.hero-title,
.hero-subtitle,
.servicio-card,
.nosotros-card,
.views-view-responsive-grid__item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s ease-out forwards;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.4s;
}

.servicio-card:nth-child(1) { animation-delay: 0.2s; }
.servicio-card:nth-child(2) { animation-delay: 0.4s; }
.servicio-card:nth-child(3) { animation-delay: 0.6s; }
.servicio-card:nth-child(4) { animation-delay: 0.8s; }
.servicio-card:nth-child(5) { animation-delay: 1s; }
.servicio-card:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.block-system .block-content:has(script) {
  display: none !important;
}
