/*
Theme Name:   MPGraf — Agencia Gráfica Chillán
Theme URI:    https://mpgraf.cl
Author:       Webnex by WYS Technology
Author URI:   https://www.webnex.cl
Description:  Tema WordPress corporativo a medida para Más Publicidad Gráfica (MPGraf), agencia de publicidad y diseño gráfico ubicada en Chillán, Región del Ñuble. Incluye portfolio nativo con galería múltiple, SEO local integrado (Schema.org LocalBusiness), formulario de contacto AJAX, sección de servicios editorial, animaciones fade-up, menú responsive y panel de administración para edición de contenido sin conocimientos técnicos. Desarrollado exclusivamente por Webnex / WYS Technology.
Version:      2.0.0
Requires WP:  6.0
Tested up to: 6.5
Requires PHP: 7.4
License:      GPL v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  mpgraf
Tags:         dark, portfolio, one-column, custom-menu, featured-images, custom-logo, full-width-template, theme-options, translation-ready
*/

/* ============================================================
   VARIABLES & RESET
   Paleta extraída del logo oficial MPGraf:
   Navy oscuro → Azul primario → Cyan brillante
   ============================================================ */
:root {
  /* Fondos */
  --bg:           #04101E;   /* navy muy oscuro */
  --bg-surface:   #071828;   /* navy superficie */
  --bg-card:      #0C2240;   /* navy card */

  /* Colores de marca (logo gradient) */
  --accent:       #0080E6;   /* azul primario */
  --accent-dark:  #0060BB;   /* azul oscuro */
  --accent-light: #29ABE2;   /* cyan brillante */
  --accent-navy:  #0D2A6E;   /* navy logo */
  --accent-grad:  linear-gradient(135deg, #0D2A6E 0%, #0080E6 55%, #29ABE2 100%);

  /* Textos */
  --text:         #FFFFFF;
  --text-muted:   #6B92B4;   /* azul grisáceo */
  --text-light:   #B8D4EC;   /* azul muy claro */

  /* Bordes dark */
  --border:       #0F2E50;
  --white:        #FFFFFF;

  /* Paleta light (secciones blancas) */
  --light-bg:          #FFFFFF;
  --light-surface:     #F4F8FC;
  --light-card:        #FFFFFF;
  --light-border:      #DDE9F5;
  --light-text:        #0D1F3C;
  --light-text-body:   #3A5570;
  --light-text-muted:  #7A99B8;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w:        1200px;
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   all 0.3s ease;

  --section-py:   100px;
  --nav-h:        80px;
}

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

/* Prevención global de desborde horizontal */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Contener secciones y contenedores que puedan desbordar */
section,
.container,
.hero-content,
.services-list,
.manifesto-inner,
.nosotros-inner,
.footer-top {
  max-width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }
ul { list-style: none; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-title span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-py) 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-desc {
  margin: 0 auto;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-grad);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0060BB 0%, #0099FF 55%, #45C4F0 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 128, 230, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--light-surface);
  color: var(--light-text);
  border: 1.5px solid var(--light-border);
}

.btn-dark:hover {
  background: var(--accent-grad);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,128,230,0.25);
}

/* ============================================================
   HEADER & NAVEGACIÓN
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 128, 230, 0.12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
}

#site-header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 128, 230, 0.22);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 54px;
  width: auto;
}

/* Logo del theme */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 62px;
  width: auto;
  display: block;
  transition: var(--transition);
  /* drop-shadow sigue el contorno del PNG transparente — realza la forma real del logo */
  filter: drop-shadow(0 2px 10px rgba(0, 128, 230, 0.22));
}

.site-logo-link:hover .site-logo-img {
  opacity: 0.90;
  transform: scale(1.03);
  filter: drop-shadow(0 4px 16px rgba(0, 128, 230, 0.45));
}

/* Logo en el footer */
.footer-logo-img {
  height: 56px;
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0, 128, 230, 0.30));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #3A5570;
  position: relative;
}

/* Subrayado animado en hover */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 40px;           /* separación visual del último ítem */
  padding-left: 40px;          /* espacio extra */
  border-left: 1px solid rgba(0, 128, 230, 0.18);  /* divisor sutil */
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0D1F3C;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — oculto por defecto en todos los tamaños */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d1117;
  border-top: 2px solid var(--accent);
  padding: 24px 20px 40px;
  z-index: 9999;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Solo se muestra cuando tiene clase .open Y estamos en mobile */
@media (max-width: 768px) {
  .mobile-nav.open {
    display: flex;
  }
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  display: block;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:active { color: var(--accent); }

/* Botón CTA dentro del menú mobile */
.mobile-nav .mobile-nav-cta {
  margin-top: 24px;
  background: var(--accent-grad);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  border-bottom: none;
  letter-spacing: 0.1em;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #020C18 0%, #04101E 45%, #071828 100%);
  z-index: 0;
}

/* Grid sutil — ADN gráfico, no orbes de IA */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,128,230,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,128,230,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Marca de corte — esquina superior derecha (elemento de impresión) */
.hero-bg::after {
  content: '';
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  right: 32px;
  width: 44px;
  height: 44px;
  border-top: 1px solid rgba(0,128,230,0.4);
  border-right: 1px solid rgba(0,128,230,0.4);
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Eyebrow editorial — reemplaza el pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 32px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.hero-badge::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-badge::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.4s infinite;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 1; }
  40%            { opacity: 0.2; }
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0.5;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-num span {
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* Ticker de servicios — franja separadora independiente */
.hero-ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #020C18;             /* mismo tono del pie del hero */
  border-top: 1px solid rgba(0,128,230,0.35);
  border-bottom: 1px solid rgba(0,128,230,0.20);
  padding: 15px 0;
  z-index: 5;
}

.hero-ticker {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker-run 32s linear infinite;
}

.hero-ticker span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  flex-shrink: 0;
  padding-right: 3rem;
}

.hero-ticker span b {
  color: var(--accent-light);
  font-weight: 800;
}

@keyframes ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICIOS — fondo blanco
   ============================================================ */
#servicios {
  background: var(--light-bg);
  position: relative;
}

/* Diagonal eliminada — el ticker actúa como separador visual */

#servicios .section-label { color: var(--accent); }
#servicios .section-title { color: var(--light-text); }
#servicios .section-desc  { color: var(--light-text-body); }

.services-grid {
  display: none; /* ocultar; reemplazado por .services-list */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.service-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0,60,120,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card h3 { color: var(--light-text); }
.service-card p  { color: var(--light-text-body); }

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  background: var(--light-surface);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,128,230,0.13);
  border-color: rgba(0,128,230,0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,128,230,0.12);
  border: 1px solid rgba(41,171,226,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(0,128,230,0.22);
  border-color: rgba(41,171,226,0.4);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PORTFOLIO — fondo gris muy claro
   ============================================================ */
#portfolio {
  background: var(--light-surface);
}

#portfolio .section-label { color: var(--accent); }
#portfolio .section-title { color: var(--light-text); }
#portfolio .section-desc  { color: var(--light-text-body); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Primera imagen: destacada, ocupa 2 columnas */
.portfolio-item:first-child {
  grid-column: span 2;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  cursor: pointer;
}

.portfolio-item:first-child {
  aspect-ratio: 16/9;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.portfolio-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.portfolio-item:first-child .portfolio-title {
  font-size: 1.3rem;
}

/* Badge de cantidad de fotos */
.portfolio-photo-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.portfolio-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.portfolio-empty p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.portfolio-footer {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   NOSOTROS — fondo blanco
   ============================================================ */
#nosotros {
  background: var(--light-bg);
}

#nosotros .section-label          { color: var(--accent); }
#nosotros .section-title          { color: var(--light-text); }
#nosotros p                       { color: var(--light-text-body); }
#nosotros .nosotros-feature-text h4 { color: var(--light-text); }
#nosotros .nosotros-feature-text p  { color: var(--light-text-muted); }

.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nosotros-visual-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.nosotros-visual-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.nosotros-badge {
  position: relative;
  bottom: auto;
  left: auto;
  align-self: flex-end;
  background: var(--accent-grad);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,128,230,0.4);
}

.nosotros-badge-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.nosotros-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.nosotros-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.nosotros-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.nosotros-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0,128,230,0.12);
  border: 1px solid rgba(41,171,226,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nosotros-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.nosotros-feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  background: var(--accent-grad);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 41px
  );
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 1.05rem;
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-white:hover {
  background: var(--bg);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ============================================================
   CONTACTO — fondo blanco
   ============================================================ */
#contacto {
  background: var(--light-bg);
}

#contacto .section-label       { color: var(--accent); }
#contacto .section-title       { color: var(--light-text); }
#contacto .contacto-item-label { color: var(--light-text-muted); }
#contacto .contacto-item-value { color: var(--light-text); font-weight: 600; }
#contacto .contacto-item-value a { color: var(--accent); }
#contacto .contacto-item-value a:hover { color: var(--accent-dark); }

/* ============================================================
   NÚMEROS GRANDES EN SERVICIOS
   ============================================================ */
.service-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.18;
  position: absolute;
  top: 16px;
  right: 20px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  letter-spacing: -0.05em;
}

.service-card:hover .service-num { opacity: 0.35; }

/* ============================================================
   SERVICIOS — lista editorial (nuevo diseño)
   ============================================================ */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--light-border);
}

.service-row {
  display: grid;
  grid-template-columns: 52px 1fr 48px;
  align-items: center;
  gap: 32px;
  padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--light-border);
  position: relative;
  transition: background 0.2s ease, padding-left 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* Borde izquierdo de acento que crece al hover */
.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-grad);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
  border-radius: 0 2px 2px 0;
}

.service-row:hover {
  background: var(--light-surface);
  padding-left: 24px;
}

.service-row:hover::before {
  transform: scaleY(1);
}

.service-row-num {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.service-row-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--light-text);
  margin-bottom: 5px;
  line-height: 1.2;
}

.service-row-body p {
  font-size: 0.875rem;
  color: var(--light-text-body);
  margin: 0;
  line-height: 1.6;
}

/* Flecha circular */
.service-row-arrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--light-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  justify-self: end;
}

.service-row-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.service-row:hover .service-row-arrow {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
}

.service-row:hover .service-row-arrow svg {
  transform: rotate(-45deg);
}

/* Responsive filas */
@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 40px 1fr 44px;
    gap: 18px;
    padding: 22px 12px 22px 0;
  }
}

@media (max-width: 480px) {
  .service-row {
    grid-template-columns: 32px 1fr;
    gap: 12px 14px;
    padding: 18px 8px 18px 0;
  }
  .service-row-arrow { display: none; }
  .service-row-body h3 { font-size: 1.05rem; }
}

/* ============================================================
   SECCIÓN MANIFESTO — cinematográfico centrado
   ============================================================ */
#manifesto {
  background: var(--bg);
  padding: 120px 0;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* Texto fantasma de fondo — elemento de diseño editorial */
.manifesto-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(80px, 22vw, 220px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,128,230,0.08);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
}

.manifesto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Decoración superior */
.manifesto-inner::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 8px;
}

.manifesto-quote {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.03em;
}

.manifesto-quote em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.manifesto-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0;
  line-height: 1.7;
}

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

/* Frase final del manifesto */
.manifesto-claim {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.85;
}

/* Crédito footer */
.footer-dev a {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
}
.footer-dev a:hover { color: var(--white); }

/* Responsive manifesto */
@media (max-width: 768px) {
  #manifesto { padding: 80px 0; }
}

@media (max-width: 480px) {
  #manifesto { padding: 64px 0; }
  .manifesto-quote { font-size: clamp(2.8rem, 13vw, 4.5rem); }
}

/* ============================================================
   Tarjetas de contacto directo */
.contacto-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contacto-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--light-border);
  background: var(--light-card);
  box-shadow: 0 2px 16px rgba(0,60,120,0.06);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.contacto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,128,230,0.14);
  border-color: var(--accent);
}

.contacto-card--wa:hover  { border-color: #25D366; box-shadow: 0 12px 40px rgba(37,211,102,0.2); }
.contacto-card--wa .contacto-card-icon { background: rgba(37,211,102,0.1); color: #25D366; }

.contacto-card--phone .contacto-card-icon { background: rgba(0,128,230,0.1); color: var(--accent); }
.contacto-card--email .contacto-card-icon { background: rgba(0,128,230,0.1); color: var(--accent); }
.contacto-card--location { cursor: default; }
.contacto-card--location .contacto-card-icon { background: rgba(0,128,230,0.08); color: var(--accent); }

.contacto-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-card-icon svg {
  width: 24px;
  height: 24px;
}

.contacto-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contacto-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-text-muted);
}

.contacto-card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacto-card-action {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

.contacto-card--location .contacto-card-action {
  color: var(--light-text-muted);
}

/* Mapa full width */
.contacto-map-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--light-border);
  box-shadow: 0 4px 24px rgba(0,60,120,0.08);
}

/* Responsive tarjetas */
@media (max-width: 900px) {
  .contacto-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .contacto-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contacto-card  { padding: 20px 16px; }
  .contacto-card-value { font-size: 0.82rem; }
}
@media (max-width: 360px) {
  .contacto-cards { grid-template-columns: 1fr; }
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contacto-info {
  padding-top: 8px;
}

.contacto-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.contacto-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0,128,230,0.12);
  border: 1px solid rgba(41,171,226,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacto-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.contacto-item-value {
  color: var(--text);
  font-weight: 500;
}

.contacto-form {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 32px rgba(0,60,120,0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light-text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--light-bg);
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--light-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,128,230,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--light-text-muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select option {
  background: var(--light-bg);
  color: var(--light-text);
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 16px;
}

/* ============================================================
   FOOTER — dark navy
   ============================================================ */
#site-footer {
  background: #04101E;
  border-top: 3px solid transparent;
  border-image: var(--accent-grad) 1;
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-copy a {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-grad);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: wa-pulse 3s infinite;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
  background: #20ba5a;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: sin JS o en crawlers todo el contenido es visible */
.no-js .fade-up {
  opacity: 1;
  transform: none;
}

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   PÁGINAS INTERNAS / BLOG
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.content-wrap {
  padding: 80px 0;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-light);
}

.entry-content h1, .entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--accent); }
.entry-content img { border-radius: var(--radius); margin: 2rem 0; }

/* ============================================================
   PORTAFOLIO SINGLE — imagen principal + galería de fotos
   ============================================================ */
.portfolio-single-wrap {
  max-width: 960px;
}

/* Imagen de portada (imagen destacada) */
.portfolio-single-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.portfolio-single-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Galería de fotos adicionales del contenido */
.portfolio-single-gallery {
  margin-bottom: 48px;
}

/* Título de sección galería */
.portfolio-single-gallery::before {
  content: 'Más imágenes del proyecto';
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Grid automático para múltiples imágenes sueltas */
.portfolio-single-gallery .wp-block-image,
.portfolio-single-gallery figure {
  margin: 0;
}

.portfolio-single-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Bloque galería de Gutenberg */
.portfolio-single-gallery .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}

.portfolio-single-gallery .wp-block-gallery .wp-block-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-single-gallery .wp-block-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.35s ease;
}

.portfolio-single-gallery .wp-block-gallery img:hover {
  transform: scale(1.03);
}

/* Imágenes sueltas una debajo de otra */
.portfolio-single-gallery .wp-block-image + .wp-block-image {
  margin-top: 20px;
}

/* Navegación inferior */
.portfolio-single-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Legacy — mantener compatibilidad */
.portfolio-single-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.portfolio-single-img img { width: 100%; height: auto; }

/* ============================================================
   RESPONSIVE — COBERTURA COMPLETA
   Breakpoints: 1280 / 1024 / 768 / 600 / 480 / 360
   ============================================================ */

/* ---- 1280px: pantallas medianas ---- */
@media (max-width: 1280px) {
  .container { padding: 0 32px; }
  .nosotros-inner { gap: 48px; }
  .contacto-inner { gap: 48px; }
}

/* ---- 1024px: tablet landscape / laptop pequeño ---- */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --nav-h: 64px;
  }

  /* Grillas */
  .nosotros-inner   { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-visual  { max-width: 420px; margin: 0 auto; width: 100%; }
  .contacto-inner   { grid-template-columns: 1fr; gap: 40px; }
  .footer-top       { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Servicios: 2 columnas en tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Portfolio: 2 columnas, primera sigue destacada */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }

  /* Hero ajustes */
  .hero-stats { gap: 32px; }
}

/* ---- 768px: tablet portrait / móviles grandes ---- */
@media (max-width: 768px) {
  :root {
    --section-py:  60px;
    --nav-h:       60px;
  }

  .container { padding: 0 20px; }


  /* ---- NAV ---- */
  .nav-menu  { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  /* ---- HERO ---- */
  #hero { min-height: 100svh; min-height: 100vh; }

  .hero-content { padding-top: 16px; }

  .hero-desc {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 28px;
  }

  .hero-stat-num { font-size: 1.75rem; }

  /* ---- SECCIÓN HEADERS ---- */
  .section-header { margin-bottom: 40px; }
  .section-desc { font-size: 1rem; }

  /* ---- SERVICIOS ---- */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card  { padding: 28px 20px; }

  /* ---- PORTFOLIO ---- */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* En touch: overlay siempre visible */
  .portfolio-overlay { opacity: 1; }

  /* ---- NOSOTROS ---- */
  .nosotros-content { padding: 0; }
  .nosotros-visual  { max-width: 340px; margin: 0 auto; width: 100%; }
  .nosotros-visual-inner { padding: 24px; }
  .nosotros-badge   { align-self: center; padding: 16px 24px; }

  /* ---- CTA BANNER ---- */
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  /* ---- CONTACTO ---- */
  .contacto-inner   { grid-template-columns: 1fr; }
  .contacto-form    { padding: 28px 20px; }
  .form-row         { grid-template-columns: 1fr; gap: 0; }

  /* ---- FOOTER ---- */
  .footer-top    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  /* ---- GRILLAS GENÉRICAS ---- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- 600px: móviles medianos ---- */
@media (max-width: 600px) {
  :root { --section-py: 52px; }

  /* Hero compacto */
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* Stats: 3 en fila pero se comprimen bien */
  .hero-stats { gap: 12px; flex-wrap: nowrap; }
  .hero-stat  { flex: 1 1 0; min-width: 0; }   /* min-width:0 permite que flex comprima */
  .hero-stat-label { font-size: 0.68rem; letter-spacing: 0.04em; }

  /* Servicios: 1 columna */
  .services-grid { grid-template-columns: 1fr; }

  /* Portfolio: 1 columna */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Logo más pequeño */
  .logo-text { font-size: 1.35rem; }
}

/* ---- 480px: móviles estándar ---- */
@media (max-width: 480px) {
  :root { --section-py: 48px; }

  .container { padding: 0 16px; }

  /* Tipografía */
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  h3 { font-size: 1.1rem; }

  /* Hero */
  .hero-badge { font-size: 0.68rem; padding: 6px 12px; }
  .hero-scroll { display: none; }
  .hero-stats  { padding-top: 24px; }
  .hero-stat-num { font-size: 1.5rem; }

  /* Nav */
  .logo-text { font-size: 1.25rem; }

  /* Formulario */
  .contacto-form { padding: 24px 16px; border-radius: var(--radius); }

  /* Mobile nav links más grandes */
  .mobile-nav a { font-size: 1.05rem; padding: 14px 0; }

  /* CTA btn full width */
  .btn-white { width: 100%; justify-content: center; }

  /* Footer */
  #site-footer { padding: 48px 0 24px; }

  /* Nosotros: logo compacto en móvil pequeño */
  .nosotros-visual  { max-width: 260px; }
  .nosotros-visual-inner { padding: 18px; }
  .nosotros-badge { display: none; }

  /* Ocultar segundo botón hero en muy pequeño */
  .btn-outline { display: none; }
}

/* ---- 360px: móviles muy pequeños ---- */
@media (max-width: 360px) {
  .container { padding: 0 12px; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat { display: flex; align-items: center; gap: 12px; }

  .service-card { padding: 20px 16px; }

  .footer-top { gap: 24px; }
}

/* ---- TOUCH / HOVER: dispositivos táctiles ---- */
@media (hover: none) {
  /* Portfolio overlay siempre visible en touch */
  .portfolio-overlay { opacity: 1; }

  /* Sin efecto lift en touch */
  .service-card:hover { transform: none; }
  .btn-primary:hover  { transform: none; }
  .btn-outline:hover  { transform: none; }
  .btn-dark:hover     { transform: none; }
  .social-link:hover  { transform: none; }
}

/* ---- iOS SAFE AREA (muescas/notch) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
  #site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
  .mobile-nav {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ---- LANDSCAPE MÓVIL ---- */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 40px) 0 40px;
  }
  .hero-scroll { display: none; }
  .hero-stats  { display: none; }
}

/* ---- PRINT ---- */
@media print {
  #site-header, .nav-toggle, .mobile-nav,
  .hero-actions, #cta-banner, #contacto { display: none; }

  body { background: white; color: black; }
  .container { max-width: 100%; padding: 0; }
}
