/* ============================================================
   Irvin Terani | Haute Couture
   Sistema de diseño — Landing Page
   Paleta: #0a0a0a / #c9a96e / #fafafa
   Tipografías: Playfair Display + Inter
============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap&subset=latin,latin-ext');

/* ── Variables CSS ────────────────────────────────────────── */
:root {
  --color-bg:      #0a0a0a;
  --color-gold:    #c9a96e;
  --color-gold-dk: #a88b4f;
  --color-white:   #fafafa;
  --color-mid:     #141414;
  --color-mid2:    #1a1a1a;
  --color-border:  #2a2a2a;
  --color-gray:    #666666;
  --color-gray-lt: #e8e8e8;
  --color-bg-alt:  #f5f3f0;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  --transition:      200ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  --radius: 0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Reset base ───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section base ─────────────────────────────────────────── */
section { padding: 6rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-bg);
}

.section-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-gray);
  font-weight: 300;
  font-size: 0.95rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition-slow), color var(--transition-slow), border-color var(--transition-slow);
}

.btn:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-dk);
  border-color: var(--color-gold-dk);
  color: var(--color-bg);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  background: transparent;
  color: var(--color-gold);
}

/* ── Focus visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--transition-slow), padding var(--transition-slow), box-shadow var(--transition-slow);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
}

.logo-text span {
  font-weight: 300;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-slow);
}

.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  position: relative;
  z-index: 1001;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   SPLASH SCREEN
═══════════════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

#splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: min(280px, 55vw);
  height: auto;
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  animation: splashLogoIn 1.8s ease 0.3s forwards;
}

.splash-text {
  margin-top: 1.8rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  animation: splashFade 1.2s ease 1.2s forwards;
}

.splash-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin-top: 1.2rem;
  animation: splashLine 1.8s ease 1.6s forwards;
}

@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes splashFade {
  to { opacity: 1; }
}

@keyframes splashLine {
  to { width: 120px; }
}

body.splash-active { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #1a1208 0%, #0d0d0d 45%, #0a0a0a 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.5) 0%,
    transparent 35%,
    transparent 65%,
    rgba(10,10,10,0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  padding: 0 2rem;
  max-width: 900px;
  position: relative;
}

.hero-label {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeUp 1s ease 0.8s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.45;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   SOBRE EL DISEÑADOR
═══════════════════════════════════════════════════════════ */
.about { background: var(--color-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-inner {
  position: relative;
  overflow: hidden;
}

.about-image-inner img,
.about-image-inner .about-img-placeholder {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* Foto real del diseñador */
.about-photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 600ms ease;
}

.about-image-inner:hover .about-photo {
  transform: scale(1.03);
}

.about-img-placeholder {
  background: linear-gradient(145deg, #2a2520, #1a1510);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder img {
  width: 60%;
  max-width: 240px;
  opacity: 0.9;
  height: auto;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 65%;
  height: 65%;
  border: 1px solid var(--color-gold);
  z-index: -1;
  pointer-events: none;
}

.about-content .section-label { text-align: left; }

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--color-gray);
  margin-bottom: 1.1rem;
  font-weight: 300;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-lt);
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-top: 0.3rem;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   ESPECIALIDADES
═══════════════════════════════════════════════════════════ */
.especialidades {
  background: var(--color-bg-alt);
}

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

.esp-card {
  background: var(--color-white);
  border: 1px solid #e0ddd9;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.esp-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

/* Carrusel de categoría dentro de tarjeta */
.esp-card-carousel {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--color-mid2);
}

.esp-card-carousel .carousel-track {
  height: 100%;
}

.esp-card-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.esp-card-carousel .carousel-slide.active {
  opacity: 1;
}

.esp-card-placeholder {
  height: 300px;
  background: linear-gradient(145deg, #2a2520, #1a1510);
  display: flex;
  align-items: center;
  justify-content: center;
}

.esp-card-placeholder span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(201, 169, 110, 0.6);
  letter-spacing: 2px;
  text-align: center;
  padding: 1rem;
}

.esp-card-body {
  padding: 1.8rem 1.5rem;
  flex: 1;
}

.esp-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--color-bg);
}

.esp-card-body p {
  font-size: 0.88rem;
  color: var(--color-gray);
  font-weight: 300;
  line-height: 1.6;
}

/* Dots del carrusel */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0;
  background: var(--color-bg-alt);
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 10, 0.2);
  padding: 0;
  transition: background var(--transition);
  cursor: pointer;
}

.carousel-dots button.active,
.carousel-dots button:hover {
  background: var(--color-gold);
}

/* Botones prev/next del carrusel */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition);
  cursor: pointer;
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(201, 169, 110, 0.5);
}

.carousel-prev { left: 0.4rem; }
.carousel-next { right: 0.4rem; }

/* ═══════════════════════════════════════════════════════════
   PORTAFOLIO
═══════════════════════════════════════════════════════════ */
.portfolio { background: var(--color-bg-alt); }

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray);
  padding: 0.5rem 1rem;
  transition: color var(--transition);
  position: relative;
  font-family: var(--font-body);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-slow);
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--color-bg);
}

.filter-btn.active::after {
  width: 30px;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-mid2);
  cursor: pointer;
  display: block;
}

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

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.portfolio-overlay span {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(201, 169, 110, 0.5);
}

.ph-1 { background: linear-gradient(145deg, #2a2520, #1a1510); }
.ph-2 { background: linear-gradient(145deg, #1a1a2e, #0f0f1a); }
.ph-3 { background: linear-gradient(145deg, #2c1810, #1a0f0a); }
.ph-4 { background: linear-gradient(145deg, #1f1a1a, #0f0a0a); }
.ph-5 { background: linear-gradient(145deg, #1a2a2a, #0a1515); }
.ph-6 { background: linear-gradient(145deg, #2a1a2a, #150a15); }

.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   FORMULARIO MEDIDAS
═══════════════════════════════════════════════════════════ */
.mediciones { background: var(--color-white); }

.form-container {
  max-width: 820px;
  margin: 0 auto;
  background: #f9f7f4;
  padding: 3rem;
  border: 1px solid #e8e4df;
}

.form-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-gray);
  font-weight: 300;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--color-gray);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-bg);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--color-gray);
  margin-top: 1.5rem;
  text-align: center;
}

.form-submit {
  margin-top: 2rem;
  text-align: center;
}

.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  border-radius: 0;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ═══════════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════════ */
.contacto {
  background: var(--color-bg);
  color: var(--color-white);
}

.contacto .section-title { color: var(--color-white); }
.contacto .section-desc  { color: rgba(255,255,255,0.55); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contacto-col h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 1.8rem;
  color: var(--color-white);
}

.contacto-item {
  margin-bottom: 1.5rem;
}

.contacto-item strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.contacto-item p,
.contacto-item a {
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  font-size: 0.92rem;
}

.contacto-item a:hover { color: var(--color-gold); }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* Colores propios de cada red */
.social-links a[aria-label*="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}
.social-links a[aria-label*="Facebook"] {
  background: #1877f2;
  color: #fff;
}
.social-links a[aria-label*="TikTok"] {
  background: #010101;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.social-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

/* ── Botón flotante WhatsApp — Cita presencial ───────────────── */
.float-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.2rem 0.7rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  color: #fff;
}

.float-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .float-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1rem 0.65rem 0.8rem;
    font-size: 0.78rem;
  }
  .float-whatsapp svg { width: 20px; height: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: #050505;
  color: rgba(255,255,255,0.35);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.78rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.85;
  display: block;
}

footer a {
  color: var(--color-gold);
  transition: opacity var(--transition);
}

footer a:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.94);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox.closing {
  opacity: 0;
}

.lightbox-inner {
  max-width: 960px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--color-gold); }

.lightbox-stage {
  position: relative;
  background: #111;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  z-index: 1;
}

.lightbox-nav:hover {
  background: rgba(201, 169, 110, 0.35);
  border-color: var(--color-gold);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-info {
  padding: 1.2rem 0.5rem 0;
  color: #fff;
  text-align: center;
}

.lightbox-info h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.lightbox-cat {
  color: var(--color-gold);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lightbox-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.lightbox-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.lightbox-dots button.active { background: var(--color-gold); }
.lightbox-dots button:hover  { background: rgba(201,169,110,0.7); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* md: 1023px — 2 columnas portafolio y especialidades */
@media (max-width: 1023px) {
  .esp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image::after { display: none; }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* sm: 768px — menú hamburguesa */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    z-index: 1000;
    border-left: 1px solid var(--color-border);
  }

  .nav-links.open { right: 0; }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

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

  .form-container { padding: 2rem 1.5rem; }

  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  .about-stats { gap: 1.5rem; }
}

/* xs: 599px — 1 columna */
@media (max-width: 599px) {
  .esp-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

/* 4K: 2560px+ */
@media (min-width: 2560px) {
  .container { max-width: 1600px; }
  .nav-container { max-width: 1800px; }
}
