/* =========================================================
   EsCiaH Networks - styles.css
   VERSION FINAL: Liquid Glass + Destellos Fijos en Orillas
   ========================================================= */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --color-texto: #0b1220;
  --color-texto-secondary: #1e293b;
  --color-azul: #3F6E97;
  --color-span: #5F8FB3;
  --color-spanHover: #2F587C;
  --danger: #d62828;

  /* === VARIABLES GLASS (Vidrio Líquido) === */
  /* Fondo MUY transparente para que se vean los destellos */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  --radius-xl: 24px;
  --container: 1200px;
  --pad: 2rem;
}

/* =========================================
   1. FONDO CON DESTELLOS EN LAS ORILLAS
   ========================================= */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--color-texto);
  line-height: 1.5;
  background-color: #f0f4f8;
  /* Color base gris muy claro */

  /* Aquí están los "Destellos" */
  background-image:
    /* 1. Destello AZUL FUERTE (Arriba Izquierda) - Da profundidad */
    radial-gradient(circle at 0% 0%, rgba(63, 110, 151, 0.45) 0%, transparent 45%),

    /* 2. Destello CYAN BRILLANTE (Abajo Derecha) - Da modernidad */
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.35) 0%, transparent 45%),

    /* 3. Destello BLANCO/LUZ (Arriba Derecha) - Simula reflejo de sol */
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 25%),

    /* 4. Destello AZUL SUAVE (Abajo Izquierda) - Relleno */
    radial-gradient(circle at 0% 80%, rgba(95, 143, 179, 0.25) 0%, transparent 40%);

  /* IMPORTANTE: Fixed hace que los destellos se queden en la pantalla
     mientras el contenido se mueve sobre ellos. */
  background-attachment: fixed;
  background-size: 100% 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.text-justify {
  text-align: justify;
}

.rojo {
  color: var(--danger);
}

/* Contenedores generales */
#stats,
#tituloServicio,
#testimonios,
#portafolio,
.esciah-faq-section,
#contacto {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   CLASE MAESTRA DE VIDRIO (LIQUID GLASS)
   ========================================================= */
/* Aplicamos el efecto a todos los cuadros MENOS al footer */
#esciah,
.servicio-fila,
.stat-item,
.portafolio-card,
.testimonial-card,
.faq-container,
.contacto-info,
.contacto-form-wrapper,
.menu-desplegado {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}

/* Radios de borde específicos */
.servicio-fila,
.portafolio-card,
.testimonial-card,
.faq-container,
.contacto-info,
.contacto-form-wrapper {
  border-radius: var(--radius-xl) !important;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
  transition: transform 0.35s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.logo img {
  height: 2.2rem;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-actions a,
.menu-icon {
  color: var(--color-span);
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.25s;
}

.header-actions a:hover,
.menu-icon:hover {
  color: var(--color-spanHover);
}

.header-actions>a::before,
.header-actions>nav::after {
  content: "|";
  margin: 0 1.2rem;
  color: #cfcfcf;
  font-weight: 300;
  font-size: 1.2rem;
}

/* Menu Desplegable */
.menu-overlay {
  position: relative;
}

.menu-desplegado {
  position: absolute;
  top: 160%;
  right: 0;
  min-width: 12rem;
  border-radius: 12px !important;
  list-style: none;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
  margin-top: 0.3rem;
  background: rgba(255, 255, 255, 1) !important;
}

.menu-overlay.open .menu-desplegado {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-desplegado li a {
  display: block;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  color: var(--color-texto);
  transition: background 0.25s ease;
}

.menu-desplegado li a:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-spanHover);
}

/* =========================================================
   HERO (INICIO) - Glass
   ========================================================= */
#esciah {
  /* Layout */
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 5.8rem var(--pad) 2.5rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: center;

  border-radius: 0 0 30px 30px !important;
  border-top: none !important;
}

.contenedorTitulo h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.06rem;
}

.contenedorTitulo p {
  margin: 1.2rem 0 0;
  max-width: 55ch;
  color: var(--color-texto-secondary);
  font-size: 1.05rem;
}

.imagenInicio img {
  width: min(850px);
  border-radius: 20px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
  /* Sombra fuerte para resaltar */
}

@media (max-width: 560px) {
  .desaparecer {
    display: none;
  }
}

/* Botones y Agenda */
.miAgenda {
  margin-top: 1.5rem;
}

.miAgenda p {
  margin-bottom: 1.2rem;
  color: var(--color-texto-secondary);
  font-weight: 500;
}

.botonAgenda button,
.btn-enviar {
  padding: 1rem 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--color-azul);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(63, 110, 151, 0.4);
}

.botonAgenda button:hover,
.btn-enviar:hover {
  background: var(--color-spanHover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 110, 151, 0.6);
}

/* =========================================================
   Servicios
   ========================================================= */
#tituloServicio {
  padding: 1rem var(--pad) 2.8rem;
}

.contenedorTituloServicio h1,
.contenedorTituloServicio h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.05rem;
}

.servicios-lista {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.servicio-fila {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.6rem;
}

.servicio-fila.inversa {
  grid-template-columns: .9fr 1.1fr;
}

.servicio-fila.inversa .servicio-info {
  order: 2;
}

.servicio-fila.inversa .servicio-img {
  order: 1;
}

.servicio-info h2 {
  margin: 0;
  font-size: 1.45rem;
}

.servicio-info p {
  margin: .75rem 0 0;
  color: var(--color-texto-secondary);
}

.lista-detalles {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  color: var(--color-texto-secondary);
}

.lista-detalles li::before {
  content: "✓";
  color: var(--color-azul);
  font-weight: 900;
  margin-right: .55rem;
}

.boton-servicio {
  margin-top: 1.1rem;
  display: inline-flex;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(63, 110, 151, .3);
  color: var(--color-azul);
  font-weight: 800;
  transition: all .2s;
}

.boton-servicio:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.servicio-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 350px;
  margin: auto;
  overflow: hidden;
  border-radius: 0.5rem;
}


.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 🔥 clave */
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}


/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--color-azul);
}

/* Stats */
#stats {
  padding: 1.8rem var(--pad) 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: 14px !important;
}

.stat-item i {
  font-size: 1.35rem;
  color: var(--color-azul);
}

.stat-item p {
  margin: 0;
  color: var(--color-texto-secondary);
}

/* =========================================================
   Portafolio
   ========================================================= */
#portafolio {
  padding: 1.8rem var(--pad) 0;
}

.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.portafolio-card {
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portafolio-card:hover {
  transform: translateY(-5px);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portafolio-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(63, 110, 151, 0.95);
  /* Más sólido */
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  z-index: 2;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.card-content p {
  margin: 0 0 1.5rem 0;
  color: var(--color-texto-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid rgba(63, 110, 151, 0.1);
  padding-top: 1rem;
}

.card-tags span {
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-texto-secondary);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.card-arrow {
  color: var(--color-span);
  transition: 0.2s;
}

.portafolio-card:hover .card-arrow {
  color: var(--color-azul);
  transform: translateX(4px);
}

/* Testimonios */
#testimonios {
  padding: 2.8rem var(--pad) 0;
}

.slider-area {
  margin-top: 1.4rem;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scrollTrack 30s linear infinite;
  padding: 1rem 0;
}

.testimonial-card {
  width: 320px;
  padding: 1.25rem 1.15rem;
}

.autor {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.autor img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

@keyframes scrollTrack {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* FAQ */
.esciah-faq-section {
  padding: 2.8rem var(--pad);
}

.faq-container {
  padding: 2rem;
}

.faq-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.faq-item {
  border: 1px solid rgba(63, 110, 151, 0.15);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 1rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--color-texto);
  text-align: left;
}

.icon-plus {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(63, 110, 151, .2);
  color: var(--color-azul);
  transition: transform .2s ease;
}

.faq-item.active .icon-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: rgba(63, 110, 151, 0.05);
}

.answer-content {
  padding: 1rem;
  color: var(--color-texto-secondary);
}

/* Contacto */
.contacto-section {
  padding: 2.8rem var(--pad);
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.contacto-info,
.contacto-form-wrapper {
  padding: 1.8rem;
}

.lista-contactos {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .9rem;
}

.lista-contactos li {
  display: flex;
  gap: .85rem;
  align-items: center;
}

.lista-contactos li:hover {
  color: #3F6E97;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(63, 110, 151, .2);
  display: grid;
  place-items: center;
}

.icon-circle i {
  color: var(--color-azul);
  font-size: 1.15rem;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  justify-content: start;
}

.social-icons a,
.social-icons-footer a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.social-icons a:hover {
  background: #fff;
  transform: translateY(-2px);
}

.input-group input,
.input-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(63, 110, 151, 0.2);
  padding: .9rem .95rem;
  outline: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  transition: all .2s;
}

.input-group input:focus,
.input-group textarea:focus {
  background: #fff;
  border-color: var(--color-azul);
  box-shadow: 0 0 0 4px rgba(63, 110, 151, 0.15);
}

.etiqueta-form {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(63, 110, 151, .2);
  color: var(--color-azul);
  font-weight: 800;
  font-size: .9rem;
}

/* =========================================================
   FOOTER (SÓLIDO)
   ========================================================= */
.site-footer {
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
  width: 100%;

  /* Reset total de glass */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 100% !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col {
  margin-bottom: 2rem;
}

.site-footer h6 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h6::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-span);
}

.about {
  flex: 2;
  min-width: 300px;
  padding-right: 2rem;
}

.about p {
  color: #cbd5e1;
}

.footer-links {
  padding: 0;
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.site-footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text p {
  color: #94a3b8;
}

.social-icons-footer {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  justify-content: start;
}


.social-icons-footer a {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.social-icons-footer a:hover {
  background: var(--color-azul);
  border-color: var(--color-azul);
}

/* =========================================================
   Responsive
   ========================================================= */
/* =========================================================
   TABLETS — hasta 1024px
   ========================================================= */
@media (max-width:1024px) {

  :root {
    --pad: 1.5rem;
  }

  /* HERO */
  #esciah {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .imagenInicio {
    order: -1;
  }

  .imagenInicio img {
    width: 100%;
    max-width: 520px;
    margin: auto;
  }

  /* SERVICIOS */
  .servicio-fila,
  .servicio-fila.inversa {
    grid-template-columns: 1fr;
  }

  .servicio-info {
    order: 2;
  }

  .carousel {
    height: 280px;
  }

  /* STATS */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PORTAFOLIO */
  .portafolio-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACTO */
  .contacto-container {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-row {
    gap: 2rem;
  }

  .about {
    padding-right: 0;
  }

}



/* =========================================================
   MÓVILES — hasta 750px
   ========================================================= */
@media (max-width:750px) {

  /* HEADER */
  .header-container {
    padding: .6rem 0;
  }

  .logo img {
    height: 1.9rem;
  }

  .header-actions {
    gap: .6rem;
  }

  /* HERO */
  #esciah {
    padding: 5rem 1rem 2rem;
  }

  .contenedorTitulo h1 {
    font-size: 2rem;
  }

  .contenedorTitulo p {
    font-size: .95rem;
  }

  .miAgenda p {
    font-size: .9rem;
  }

  /* BOTONES */
  .botonAgenda button,
  .btn-enviar {
    width: 100%;
  }

  /* SERVICIOS */
  .servicio-fila {
    padding: 1.2rem;
  }

  .servicio-info h2 {
    font-size: 1.25rem;
  }

  .lista-detalles {
    font-size: .9rem;
  }

  .carousel {
    height: 220px;
  }

  /* STATS */
  .stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    justify-content: center;
    text-align: center;
  }

  /* PORTAFOLIO */
  .card-image-wrapper {
    height: 180px;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  /* TESTIMONIOS */
  .testimonial-card {
    width: 260px;
  }

  /* FAQ */
  .faq-container {
    padding: 1.3rem;
  }

  .faq-question {
    font-size: .9rem;
  }

  /* CONTACTO */
  .contacto-info,
  .contacto-form-wrapper {
    padding: 1.2rem;
  }

  .lista-contactos li {
    align-items: flex-start;
  }

  .social-icons {
    grid-template-columns: repeat(4, 40px);
  }

  /* FORM */
  .input-group input,
  .input-group textarea {
    font-size: .9rem;
  }

  /* FOOTER */
  .footer-container {
    padding: 0 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-icons-footer {
    justify-content: center;
  }

  /* CAROUSEL DOTS */
  .carousel-dots {
    bottom: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

}