/* =============================================================================
   Construcciones Gustavo Lopez - Estilos Oficiales
   Diseño Arquitectura, Construcción & Obras
   Cumple Reglas DpEstudio: 02 (Crédito), 07 (WhatsApp), 08 (Mobile Safe)
   ============================================================================= */

:root {
  --bg-darkest: #070a0f;
  --bg-main: #0c1017;
  --bg-surface: #121824;
  --bg-card: #162030;
  --bg-card-hover: #1c293d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.2);
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.25);
  
  --header-offset: calc(4.5rem + env(safe-area-inset-top, 0px));
}

@media (min-width: 768px) {
  :root {
    --header-offset: calc(5.2rem + env(safe-area-inset-top, 0px));
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

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

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }

/* Top Announcement Bar */
.top-bar {
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-gold);
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 16, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.nav-brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 26px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-gold);
  color: #0c1017;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero p.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-gold);
}

.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-preview img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-floating-stat {
  position: absolute;
  bottom: -18px;
  right: -12px;
  background: rgba(18, 24, 36, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Stats Counter Bar */
.stats-bar {
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border-color);
  padding: 32px 0;
}

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

.stat-item {
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-big {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section Header */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* Gallery & Video Showcase */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0c1017;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0f172a;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 16, 23, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.gallery-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gallery-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay-btn {
  opacity: 1;
}

.overlay-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.9);
  color: #0c1017;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.gallery-overlay-btn:hover .overlay-icon-box {
  transform: scale(1);
}

.overlay-icon-box svg {
  width: 22px;
  height: 22px;
}

.gallery-info {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.service-card {
  background: linear-gradient(145deg, rgba(22, 32, 48, 0.65) 0%, rgba(14, 20, 30, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.06);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: #ffffff;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.25;
}

.service-text {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5px 9px;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.service-card:hover .service-list li {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(12, 16, 23, 0.4);
}

.service-list li svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

/* Work Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
}

.process-number {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.25);
  margin-bottom: 12px;
}

.process-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact & Quote Section */
.contact-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-val {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

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

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Modal Lightbox & Video Player */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.media-modal.active {
  opacity: 1;
  visibility: visible;
}

.media-modal-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: #0c1017;
}

.modal-media-body {
  position: relative;
  width: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media-body img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.modal-media-body video,
.modal-media-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.modal-info-footer {
  padding: 18px 24px;
  background: var(--bg-card);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
}

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

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Regla 02: Crédito DpEstudio */
.dp-credit {
  font-size: 13px;
  color: var(--text-muted);
}

.dp-credit a {
  color: var(--accent-gold);
  font-weight: 600;
  transition: opacity 0.2s;
}

.dp-credit a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Regla 07: Botón WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
  z-index: 1500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

.whatsapp-float:hover {
  transform: translateZ(0) translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.whatsapp-float-icon {
  width: 30px;
  height: 30px;
}

/* Regla 08: Mobile Responsive Safe */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links, .nav-actions .btn-quote {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-item:nth-child(2) {
    border-right: none;
  }
}

/* Drawer Menú Móvil */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 576px) {
  .top-bar {
    padding: 5px 0;
  }
  
  .top-bar-content {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
  }

  .top-bar-item {
    white-space: nowrap;
    font-size: 11px;
  }

  .top-bar-item svg {
    width: 12px;
    height: 12px;
  }

  .top-badge {
    font-size: 10px;
    padding: 2px 7px;
    white-space: nowrap;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-bar {
    padding: 16px 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
  }
  
  .stat-item {
    padding: 10px 6px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }
  
  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-big {
    font-size: 24px;
    margin-bottom: 2px;
  }

  .stat-desc {
    font-size: 11px;
    line-height: 1.3;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .service-header-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .service-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .service-icon svg {
    width: 19px;
    height: 19px;
  }

  .service-title {
    font-size: 16.5px;
  }

  .service-text {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .service-list {
    gap: 5px;
  }

  .service-list li {
    font-size: 11.5px;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-info {
    padding: 10px;
  }

  .gallery-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .gallery-desc {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .gallery-meta {
    font-size: 10px;
    padding-top: 6px;
  }

  .gallery-badge {
    font-size: 9px;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }

  .gallery-video-badge {
    font-size: 9px;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float-icon {
    width: 26px;
    height: 26px;
  }
}
