/*
Theme Name: Impacta Tu Imagen 360
Theme URI: https://toctoc.ky/
Author: Andre Gutierrez
Author URI: https://toctoc.ky/
Description: Theme oficial de Impacta Tu Imagen 360 — impresión gran formato, rotulación vehicular, wraps, DTF, letreros y branding personalizado en Orlando, FL. Diseño idéntico al sitio original (paleta de marca magenta/naranja/cyan, tipografías Bebas Neue + Barlow + Pacifico, tema oscuro). La funcionalidad extra vive en el plugin "Impacta Core", bundleado dentro del theme (/impacta-core/) y cargado automáticamente.
Version: 1.0.7
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impacta
Tags: business, dark, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ==========================================================================
   TOKENS DE MARCA  (idénticos al sitio original de Lovable / src/styles.css)
   ========================================================================== */
:root {
  --radius: 0.75rem;

  /* Paleta de marca extraída del logo Impacta */
  --brand-magenta: oklch(0.65 0.27 0);   /* rosa/rojo intenso */
  --brand-orange: oklch(0.78 0.19 55);   /* naranja vibrante */
  --brand-cyan: oklch(0.78 0.14 230);    /* cyan eléctrico */
  --brand-yellow: oklch(0.88 0.18 95);   /* amarillo de acento */

  --background: oklch(0.08 0.01 270);    /* casi negro */
  --foreground: oklch(0.98 0.005 270);
  --card: oklch(0.12 0.015 270);
  --card-foreground: oklch(0.98 0.005 270);

  --primary: var(--brand-magenta);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.18 0.02 270);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.16 0.015 270);
  --muted-foreground: oklch(0.72 0.02 270);
  --accent: var(--brand-cyan);
  --accent-foreground: oklch(0.1 0.01 270);
  --destructive: oklch(0.65 0.25 25);

  --border: oklch(0.22 0.02 270);
  --input: oklch(0.18 0.02 270);
  --ring: var(--brand-magenta);

  /* Gradientes firma */
  --gradient-brand: linear-gradient(
    90deg,
    oklch(0.65 0.27 0) 0%,
    oklch(0.78 0.19 55) 50%,
    oklch(0.78 0.14 230) 100%
  );
  --gradient-brand-soft: linear-gradient(
    135deg,
    oklch(0.65 0.27 0 / 0.18) 0%,
    oklch(0.78 0.19 55 / 0.12) 50%,
    oklch(0.78 0.14 230 / 0.18) 100%
  );
  --gradient-hero: radial-gradient(ellipse at 20% 10%, oklch(0.65 0.27 0 / 0.28), transparent 55%),
    radial-gradient(ellipse at 85% 30%, oklch(0.78 0.14 230 / 0.28), transparent 55%),
    radial-gradient(ellipse at 60% 90%, oklch(0.78 0.19 55 / 0.25), transparent 55%);

  --shadow-glow-magenta: 0 10px 40px -10px oklch(0.65 0.27 0 / 0.55);
  --shadow-glow-cyan: 0 10px 40px -10px oklch(0.78 0.14 230 / 0.5);
  --shadow-card: 0 20px 50px -25px oklch(0 0 0 / 0.7);

  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-script: "Pacifico", cursive;
  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 50% 0%, oklch(0.18 0.05 320 / 0.35), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 400;
  margin: 0;
  line-height: 1;
}

p { margin: 0; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.section { position: relative; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }

/* Glows y texturas */
.bg-hero-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.bg-gradient-brand-soft-layer {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-soft);
  pointer-events: none;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-gradient-brand { background: var(--gradient-brand); }

.text-muted { color: var(--muted-foreground); }
.text-brand-magenta { color: var(--brand-magenta); }
.text-brand-orange { color: var(--brand-orange); }
.text-brand-cyan { color: var(--brand-cyan); }
.text-brand-yellow { color: var(--brand-yellow); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.75rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-magenta);
}
.btn-brand:hover { transform: scale(1.05); }
.btn-outline {
  border: 1px solid var(--border);
  background: oklch(0.12 0.015 270 / 0.6);
  color: var(--foreground);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--foreground); }
.btn-lg { padding: 0.875rem 1.75rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid oklch(0.22 0.02 270 / 0.6);
  background: oklch(0.08 0.01 270 / 0.8);
  backdrop-filter: blur(20px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}
.site-logo img { height: 3rem; width: auto; }
@media (min-width: 768px) { .site-logo img { height: 3.5rem; } }
.site-logo--text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.site-logo--text small { display: block; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted-foreground); }

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav .nav-menu li { margin: 0; }
.main-nav a {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.is-active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--foreground); }
.main-nav .nav-cta {
  margin-left: 0.75rem;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-magenta);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
}
.main-nav .nav-cta:hover { color: #fff; transform: scale(1.05); }

.nav-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid oklch(0.22 0.02 270 / 0.6);
  background: var(--background);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 0.75rem; }
.mobile-nav a {
  display: block;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.mobile-nav a:hover { background: var(--muted); color: var(--foreground); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; padding-block: 7rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: oklch(0.12 0.015 270 / 0.6);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  backdrop-filter: blur(8px);
}
.badge svg { width: 0.875rem; height: 0.875rem; }

.hero-title {
  font-size: 3rem;
  line-height: 0.95;
}
.hero-title span { display: block; }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }

.hero-lead {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .hero-lead { font-size: 1.125rem; } }
.hero-lead strong { color: var(--foreground); font-weight: 600; }

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-features {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
.hero-features span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-features svg { width: 1rem; height: 1rem; }

.hero-visual { position: relative; }
.hero-visual__glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 1.5rem;
  background: var(--gradient-brand-soft);
  filter: blur(48px);
}
.hero-visual__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: #000;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .hero-visual__frame { padding: 3.5rem; } }
.hero-visual__frame img { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 0 40px oklch(0.65 0.27 0 / 0.35)); }
.hero-visual__frame .wordmark { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-visual__frame .wordmark .big { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 0.95; }
.hero-visual__caption {
  position: absolute;
  bottom: -1rem;
  left: 1.5rem;
  right: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: oklch(0.12 0.015 270 / 0.9);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .hero-visual__caption { left: 2.5rem; right: 2.5rem; } }
.hero-visual__caption .eyebrow { margin: 0; color: var(--muted-foreground); font-weight: 400; }
.hero-visual__caption .big { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.5rem; }

/* ==========================================================================
   SECCIONES GENÉRICAS
   ========================================================================== */
.section-pad { padding-block: 5rem; }
@media (min-width: 768px) { .section-pad { padding-block: 7rem; } }
.section-pad-sm { padding-block: 4rem; }
@media (min-width: 768px) { .section-pad-sm { padding-block: 6rem; } }

.section-head {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; } }
.section-title {
  max-width: 42rem;
  font-size: 2.25rem;
}
@media (min-width: 768px) { .section-title { font-size: 3.75rem; } }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
}
.link-arrow:hover { color: var(--brand-magenta); }
.link-arrow svg { width: 1rem; height: 1rem; }

/* Intro y cierre de la sección de servicios */
.section-intro {
  max-width: 62rem;
  margin-bottom: 2.5rem;
  display: grid;
  gap: 1rem;
}
.section-intro p { color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.section-intro strong { color: var(--foreground); }
@media (min-width: 768px) { .section-intro p { font-size: 1.0625rem; } }

.services-closing {
  margin-top: 3.5rem;
  display: grid;
  gap: 0.75rem;
  text-align: center;
}
.services-closing p { color: var(--muted-foreground); }
.services-closing strong { color: var(--foreground); }
.services-closing__quote {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.1;
}

/* ==========================================================================
   GRID DE SERVICIOS (preview)
   ========================================================================== */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-0.25rem); border-color: oklch(0.98 0.005 270 / 0.3); }
.service-card__blob {
  position: absolute;
  right: -3rem;
  top: -3rem;
  height: 10rem;
  width: 10rem;
  border-radius: 9999px;
  background: var(--gradient-brand-soft);
  opacity: 0;
  filter: blur(32px);
  transition: opacity 0.2s ease;
}
.service-card:hover .service-card__blob { opacity: 1; }
.icon-box {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
}
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.service-card .link-arrow { margin-top: 1.25rem; font-size: 0.75rem; letter-spacing: 0.15em; }
.service-card .link-arrow svg { width: 0.875rem; height: 0.875rem; }

/* Acentos por servicio */
.accent-magenta { color: var(--brand-magenta); }
.accent-orange { color: var(--brand-orange); }
.accent-cyan { color: var(--brand-cyan); }
.accent-yellow { color: var(--brand-yellow); }
.accent-bg-magenta { background: oklch(0.65 0.27 0 / 0.1); border-color: oklch(0.65 0.27 0 / 0.3); }
.accent-bg-orange { background: oklch(0.78 0.19 55 / 0.1); border-color: oklch(0.78 0.19 55 / 0.3); }
.accent-bg-cyan { background: oklch(0.78 0.14 230 / 0.1); border-color: oklch(0.78 0.14 230 / 0.3); }
.accent-bg-yellow { background: oklch(0.88 0.18 95 / 0.1); border-color: oklch(0.88 0.18 95 / 0.3); }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-section { position: relative; }
.stats-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  padding-block: 4rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: oklch(0.12 0.015 270 / 0.7);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.stat-card .k { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.stat-card .v { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .cta-box { padding: 4rem; } }
.cta-box__inner { position: relative; }
.cta-title { margin-inline: auto; max-width: 48rem; font-size: 2.25rem; }
@media (min-width: 768px) { .cta-title { font-size: 3.75rem; } }
.cta-box p { margin: 1.25rem auto 0; max-width: 36rem; color: var(--muted-foreground); }
.cta-box .btn { margin-top: 2rem; }

/* ==========================================================================
   PÁGINA SERVICIOS (detalle)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { position: relative; padding-block: 4rem; }
@media (min-width: 768px) { .page-hero__inner { padding-block: 6rem; } }
.page-hero h1 { max-width: 56rem; font-size: 3rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 4.5rem; } }
.page-hero p { margin-top: 1.25rem; max-width: 42rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .page-hero p { font-size: 1.125rem; } }

.service-rows { display: grid; gap: 2.5rem; }
.service-row {
  scroll-margin-top: 6rem;
  display: grid;
  align-items: center;
  gap: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .service-row { grid-template-columns: 1fr 1.5fr; padding: 2.5rem; } }
/* Alternancia: filas pares con imagen a la izquierda, impares a la derecha */
@media (min-width: 768px) {
  .service-row--reverse { grid-template-columns: 1.5fr 1fr; }
  .service-row--reverse .service-row__media { order: 2; }
}
.service-row__media {
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.service-row__media svg { width: 6rem; height: 6rem; }
.service-row__kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.service-row h2 { margin-top: 0.5rem; font-size: 1.875rem; }
@media (min-width: 768px) { .service-row h2 { font-size: 3rem; } }
.service-row__desc { margin-top: 1rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .service-row__desc { font-size: 1.125rem; } }
.feature-list { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--foreground); }
.feature-list svg { margin-top: 0.125rem; width: 1rem; height: 1rem; flex-shrink: 0; }
.service-row .btn { margin-top: 1.75rem; }

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.gallery-card__content { position: relative; display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.gallery-card__content svg { width: 5rem; height: 5rem; }
.gallery-card__content .title { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; }
.gallery-card__content .sub { margin-top: 0.5rem; max-width: 18rem; font-size: 0.75rem; color: var(--muted-foreground); }
.gallery-card__tag {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: oklch(0.08 0.01 270 / 0.8);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  backdrop-filter: blur(8px);
}
.gallery-card__tag img,
.gallery-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-empty {
  margin-top: 4rem;
  border-radius: 1.5rem;
  border: 1px dashed var(--border);
  background: oklch(0.12 0.015 270 / 0.4);
  padding: 2.5rem;
  text-align: center;
}
.gallery-empty h2 { font-size: 1.5rem; }
@media (min-width: 768px) { .gallery-empty h2 { font-size: 1.875rem; } }
.gallery-empty p { margin: 0.75rem auto 0; max-width: 36rem; font-size: 0.875rem; color: var(--muted-foreground); }
.gallery-empty .btn { margin-top: 1.5rem; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.info-card:hover { border-color: oklch(0.98 0.005 270 / 0.3); }
.info-card__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid;
  background: var(--background);
}
.info-card__icon svg { width: 1.25rem; height: 1.25rem; }
.info-card .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.info-card .line { margin-top: 0.25rem; font-size: 0.875rem; color: var(--foreground); }

.social-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.social-card .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.social-links { margin-top: 0.75rem; display: flex; gap: 0.75rem; }
.social-links a {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.75rem;
  color: var(--foreground);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links a svg { width: 1.25rem; height: 1.25rem; }
.social-links a:hover { border-color: var(--brand-magenta); color: var(--brand-magenta); }

.contact-form {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }
.contact-form h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .contact-form h2 { font-size: 2.25rem; } }
.contact-form > p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.form-fields { margin-top: 1.75rem; display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field label {
  margin-bottom: 0.375rem;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
.field label .req { color: var(--brand-magenta); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease;
}
.field textarea { resize: none; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand-magenta); }
.contact-form .btn { margin-top: 0.5rem; width: 100%; justify-content: center; }
.form-success {
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.78 0.14 230 / 0.4);
  background: oklch(0.78 0.14 230 / 0.1);
  padding: 1.5rem;
  text-align: center;
}
.form-success .big { font-family: var(--font-display); font-size: 1.875rem; }
.form-success p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.form-error { color: var(--destructive); font-size: 0.85rem; margin-top: 0.5rem; }
.is-hidden { display: none !important; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 6rem;
  border-top: 1px solid oklch(0.22 0.02 270 / 0.6);
  background: oklch(0.12 0.015 270 / 0.4);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-brand img { height: 4rem; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 28rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.footer-col h4 { margin: 0 0 1rem; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--foreground); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col a:hover { color: var(--foreground); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact svg { margin-top: 0.125rem; width: 1rem; height: 1rem; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid oklch(0.22 0.02 270 / 0.6); }
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .footer-bottom__inner { flex-direction: row; } }
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-credit__spark {
  display: inline-flex;
}
.footer-credit__spark svg { width: 0.95rem; height: 0.95rem; }
.footer-credit a {
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.footer-credit a:hover {
  filter: drop-shadow(0 0 10px oklch(0.65 0.27 0 / 0.55));
  transform: translateY(-1px);
}

/* ==========================================================================
   404 / PÁGINAS GENÉRICAS
   ========================================================================== */
.error-404 {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.error-404 .big { font-size: 6rem; font-weight: 700; }
.error-404 h2 { margin-top: 1rem; font-family: var(--font-sans); font-size: 1.5rem; font-weight: 600; }
.error-404 p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.page-content { max-width: 48rem; margin-inline: auto; }
.page-content h1, .page-content h2, .page-content h3 { margin-block: 1.5rem 0.75rem; }
.page-content p { margin-bottom: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.page-content a { color: var(--brand-cyan); text-decoration: underline; }

/* Accesibilidad */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--card);
  color: var(--foreground);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }
