/* ==========================================================================
   ALIANZA DIGITAL - HOJA DE ESTILOS PRINCIPAL
   ==========================================================================
   Esta hoja de estilos controla el diseño de TODO el sitio.
   Si cambias un color o tamaño aquí, se actualiza en todas las páginas.

   Si una página necesita algo diferente (un color especial en una sola
   página, por ejemplo), se puede agregar un bloque <style> dentro del
   <head> de esa página específica, después de la línea que carga este
   archivo, y esas reglas locales ganan sobre las de aquí.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE MARCA (cambia aquí y se actualiza en todo el sitio)
   -------------------------------------------------------------------------- */
:root {
  /* Colores principales de marca */
  --color-navy: #042C53;        /* azul oscuro - encabezados, fondos fuertes */
  --color-blue: #185FA5;        /* azul medio - links, acentos secundarios */
  --color-coral: #D85A30;       /* coral - botones y llamados a la acción */
  --color-coral-dark: #B84A24;  /* coral oscuro - hover de botones */

  /* Colores neutros */
  --color-bg: #F1EFE8;          /* fondo cálido general del sitio */
  --color-white: #FFFFFF;
  --color-text: #2C2C2A;        /* texto principal (casi negro, más suave) */
  --color-text-light: #6B6B66;  /* texto secundario / descripciones */
  --color-border: #DDD8CC;      /* líneas divisorias sutiles */

  /* Tipografía */
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  /* Medidas reutilizables */
  --max-width: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(4, 44, 83, 0.08);
}

/* --------------------------------------------------------------------------
   2. RESET BÁSICO (quita estilos raros por defecto del navegador)
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA GENERAL
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.text-light {
  color: var(--color-text-light);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. CONTENEDOR Y SECCIONES (estructura general de página)
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--color-bg);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem auto;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. ENCABEZADO / MENÚ DE NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  height: 42px;
  width: auto;
}

/* Menú principal (escritorio) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-coral);
}

.nav-cta {
  background-color: var(--color-coral);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background-color: var(--color-coral-dark);
  text-decoration: none !important;
}

/* Enlaces que solo aparecen en el menú móvil (hamburguesa), no en el
   menú horizontal de escritorio, para no saturarlo. En móvil, cuando se
   abre el menú, sí se muestran todos. */
.nav-extra {
  display: none;
}

/* Botón de menú hamburguesa (solo visible en móvil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. HERO (encabezado grande de cada página)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 90px 0;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

/* Hero más corto, usado en páginas internas */
.hero-sm {
  padding: 60px 0;
}

/* --------------------------------------------------------------------------
   7. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--color-coral);
  color: var(--color-white) !important;
}

.btn-primary:hover {
  background-color: var(--color-coral-dark);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white) !important;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy) !important;
}

.btn-outline-dark:hover {
  background-color: var(--color-navy);
  color: var(--color-white) !important;
}

/* --------------------------------------------------------------------------
   8. TARJETAS (servicios, diferenciadores, etc.)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   9. PROCESO (pasos numerados con ícono)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.process-step {
  text-align: center;
}

.process-step img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px auto;
}

/* --------------------------------------------------------------------------
   10. TABLA DE PRECIOS
   -------------------------------------------------------------------------- */
.price-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
}

.price-card.featured {
  border-color: var(--color-coral);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0.5rem 0;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.price-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: 28px;
  position: relative;
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-coral);
  font-weight: 700;
}

.price-note {
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   11. PORTAFOLIO
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-caption {
  padding: 18px 20px;
}

.portfolio-caption h3 {
  margin-bottom: 4px;
}

.portfolio-item.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-bg);
  aspect-ratio: 4/3;
  padding: 24px;
}

/* --------------------------------------------------------------------------
   12. FORMULARIO DE CONTACTO
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

/* --------------------------------------------------------------------------
   13. PIE DE PÁGINA
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 4px 0;
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. UTILIDADES GENERALES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE / MÓVIL
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .card-grid,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Menú hamburguesa entra en acción */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-extra {
    display: block;
  }

  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin: 16px 24px;
    text-align: center;
  }

  .hero {
    padding: 56px 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}
