/* ============================
   Santiago Informática — Estilos
   ============================ */

@font-face { font-family:'Outfit'; font-weight:400; font-display:swap; src:url('../webfonts/Outfit-400.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-weight:500; font-display:swap; src:url('../webfonts/Outfit-500.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-weight:600; font-display:swap; src:url('../webfonts/Outfit-600.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-weight:700; font-display:swap; src:url('../webfonts/Outfit-700.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-weight:800; font-display:swap; src:url('../webfonts/Outfit-800.ttf') format('truetype'); }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --azul:        #1B6DB8;
  --azul-oscuro: #124A82;
  --azul-claro:  #EAF3FC;
  --rojo:        #C0181A;
  --rojo-hover:  #9E1012;
  --verde:       #19934F;
  --verde-claro: #E6F4EC;
  --verde-hover: #147A40;
  --gris-claro:  #F4F6F9;
  --gris-medio:  #CBD5E0;
  --texto:       #1A202C;
  --texto-suave: #4A5568;
  --blanco:      #FFFFFF;
  --sombra:      0 4px 16px rgba(0,0,0,0.10);
  --radio:       10px;
  --fuente:      'Outfit', system-ui, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}

/* ---- HEADER ---- */
header {
  background: var(--blanco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo img {
  height: 52px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: var(--azul-claro);
  color: var(--azul-oscuro);
}

.nav-cta {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  border-radius: 6px;
}
.nav-cta:hover {
  background: var(--rojo-hover) !important;
}

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--azul);
  border-radius: 3px;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  background-color: var(--azul-oscuro);
  background-image:
    url('../img/circuit-dark.svg'),
    linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 100%);
  background-size: 240px 240px, auto;
  background-repeat: repeat, no-repeat;
  color: var(--blanco);
  padding: 4.5rem 1.5rem;
}

.hero-inner {
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3rem;
}

.hero-texto {
  flex: 1;
  min-width: 0;
}

.hero-derecha {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-derecha .hero-logo-img {
  width: 100%;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.3));
}

.badge-estamos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: background 0.2s;
  width: 100%;
}

.badge-estamos:hover {
  background: rgba(255,255,255,0.23);
}

.badge-estamos i {
  color: #FFD166;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #FFD166;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-primario {
  background: var(--rojo);
  color: var(--blanco);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--fuente);
  transition: background 0.2s, transform 0.15s;
}
.btn-primario:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
}

.btn-secundario {
  background: rgba(255,255,255,0.15);
  color: var(--blanco);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--fuente);
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.15s;
}
.btn-secundario:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ---- SECCIONES GENÉRICAS ---- */
section {
  padding: 4rem 1.5rem;
}

.seccion-titulo {
  text-align: center;
  margin-bottom: 3rem;
}

.seccion-titulo h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.seccion-titulo p {
  color: var(--texto-suave);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.linea {
  width: 56px;
  height: 4px;
  background: var(--rojo);
  border-radius: 4px;
  margin: 0.75rem auto 0;
}

.linea-verde {
  background: var(--verde);
}

/* ---- SERVICIOS ---- */
#servicios {
  background-color: var(--gris-claro);
  background-image: url('../img/circuit-light.svg');
  background-size: 240px 240px;
  background-repeat: repeat;
}

.grid-servicios {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card-servicio {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 2rem 1.5rem;
  box-shadow: var(--sombra);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--azul);
}

.card-servicio.verde {
  border-top-color: var(--verde);
}

.card-servicio:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.icono-servicio {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--azul);
}

.card-servicio.verde .icono-servicio {
  color: var(--verde);
}

.card-servicio h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.card-servicio p {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* ---- PRODUCTOS ---- */
#productos {
  background: var(--blanco);
}

.grid-productos {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}

.card-producto {
  background: var(--azul-claro);
  border-radius: var(--radio);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--gris-medio);
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}

.card-producto:hover {
  background: var(--verde-claro);
  border-color: #a3d4b8;
  transform: translateY(-3px);
}

.icono-prod {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  display: block;
  color: var(--azul);
  transition: color 0.2s;
}

.card-producto:hover .icono-prod {
  color: var(--verde);
}

.card-producto h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--azul-oscuro);
}

.card-producto:hover h4 {
  color: var(--verde-hover);
}

/* ---- NOSOTROS ---- */
#nosotros {
  background-color: var(--gris-claro);
  background-image: url('../img/circuit-light.svg');
  background-size: 240px 240px;
  background-repeat: repeat;
}

.nosotros-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.nosotros-texto p {
  color: var(--texto-suave);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.nosotros-logo img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.badge-lista {
  list-style: none;
  margin-top: 1rem;
}

.badge-lista li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--texto);
  border-bottom: 1px solid var(--gris-medio);
}

.badge-lista li:last-child { border-bottom: none; }

.badge-lista .check {
  color: var(--verde);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- CONTACTO ---- */
#contacto {
  background: var(--blanco);
}

.contacto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.info-card {
  background: var(--gris-claro);
  border-radius: var(--radio);
  padding: 2rem;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-card h3 i {
  color: var(--azul);
  font-size: 1.1rem;
}

.horario-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.horario-tabla tr {
  border-bottom: 1px solid var(--gris-medio);
}

.horario-tabla td {
  padding: 0.6rem 0.25rem;
  color: var(--texto-suave);
}

.horario-tabla td:first-child {
  font-weight: 600;
  color: var(--texto);
  width: 50%;
}

.cerrado { color: var(--rojo) !important; font-style: italic; }

.dato-contacto {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--texto-suave);
}

.dato-contacto .ico {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--azul);
  width: 18px;
  text-align: center;
}

.dato-contacto .ico.verde { color: var(--verde); }

.dato-contacto a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
}

.dato-contacto a.wsp {
  color: var(--verde);
}

.dato-contacto a:hover { text-decoration: underline; }

.mapa-wrapper {
  border-radius: var(--radio);
  overflow: hidden;
  border: 2px solid var(--gris-medio);
  margin-top: 1.25rem;
}

.mapa-wrapper iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: none;
}

.redes-titulo {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.redes-titulo h3 { margin-bottom: 0; }

.social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--texto-suave);
  font-weight: 500;
  transition: color 0.2s;
}

.social-link i { font-size: 1.2rem; width: 20px; text-align: center; }

.social-link.fb i  { color: #1877F2; }
.social-link.ig i  { color: #E1306C; }

.social-link:hover { color: var(--texto); }

.nota-horario {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
  border-top: 1px solid var(--gris-medio);
  padding-top: 0.75rem;
}

/* ---- FOOTER ---- */
footer {
  background-color: var(--azul-oscuro);
  background-image: url('../img/circuit-dark.svg');
  background-size: 240px 240px;
  background-repeat: repeat;
  border-top: 3px solid var(--verde);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

footer strong { color: var(--blanco); }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: var(--blanco); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  /* Header */
  .header-inner { height: 64px; }
  .header-logo img { height: 46px; }
  .menu-toggle { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blanco);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    gap: 0.25rem;
    z-index: 99;
  }
  nav ul.abierto { display: flex; }
  nav a { font-size: 1rem; padding: 0.6rem 1rem; }

  /* Hero */
  .hero { padding: 3rem 1.25rem; text-align: center; }
  .hero-inner { flex-direction: column-reverse; gap: 1.5rem; align-items: center; }
  .hero-texto { text-align: center; width: 100%; }
  .hero h1, .hero p { text-align: center; }
  .hero-derecha { flex: 0 0 auto; width: 170px; }
  .hero-btns { justify-content: center; }
  .hero p { max-width: 100%; }
  .badge-estamos { font-size: 0.8rem; }

  /* Secciones */
  section { padding: 3rem 1.25rem; }
  .seccion-titulo { margin-bottom: 2rem; }

  /* Servicios */
  .grid-servicios { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

  /* Productos */
  .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Nosotros */
  .nosotros-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nosotros-logo { order: -1; }
  .nosotros-logo img { max-width: 200px; }

  /* Contacto */
  .contacto-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .info-card { padding: 1.5rem 1.25rem; }
  .horario-tabla { font-size: 0.88rem; }

  /* Footer */
  footer { padding: 1.5rem 1rem; font-size: 0.85rem; }
  footer .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .header-logo img { height: 40px; }
  .hero-derecha { width: 130px; }
  .grid-servicios { grid-template-columns: 1fr; }
  .grid-productos { grid-template-columns: repeat(2, 1fr); }
  .horario-tabla td { padding: 0.45rem 0.2rem; font-size: 0.82rem; }
  .info-card { padding: 1.25rem 1rem; }
  .btn-primario, .btn-secundario { width: 100%; text-align: center; }
}
