/* ============================================================
   OBLECTARE · Estilo Whimsigothic Místico
   Soporte para tema claro/oscuro (predeterminado oscuro)
   ============================================================ */

:root {
  /* Tema oscuro (predeterminado) */
  --bg-primary: #120e1a;
  --bg-secondary: #1a1430;
  --bg-card: rgba(26, 20, 48, 0.7);
  --bg-input: rgba(26, 20, 48, 0.6);
  --text-primary: #f5f0f5;
  --text-secondary: #d7ccd9;
  --text-muted: #b0a8b8;
  --border-color: rgba(179, 122, 212, 0.15);
  --border-hover: rgba(179, 122, 212, 0.4);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --glass-bg: rgba(26, 20, 48, 0.7);
  --accent: #B37AD4;
  --accent-dark: #772587;
  --gradient-text: linear-gradient(135deg, #f5f0f5, #B37AD4, #772587);
  --btn-bg: transparent;
  --btn-border: #B37AD4;
  --btn-color: #f5f0f5;
  --btn-hover-bg: #B37AD4;
  --btn-hover-color: #0e0a12;
}

[data-theme="light"] {
  --bg-primary: #f5f0f5;
  --bg-secondary: #e8dce8;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-input: rgba(255, 255, 255, 0.9);
  --text-primary: #2c1a33;
  --text-secondary: #4a2a5a;
  --text-muted: #6a4a7a;
  --border-color: rgba(119, 37, 135, 0.15);
  --border-hover: rgba(119, 37, 135, 0.4);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --accent: #772587;
  --accent-dark: #4B1A5F;
  --gradient-text: linear-gradient(135deg, #4B1A5F, #772587, #B37AD4);
  --btn-bg: transparent;
  --btn-border: #772587;
  --btn-color: #2c1a33;
  --btn-hover-bg: #772587;
  --btn-hover-color: #f5f0f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 20% 30%, rgba(179, 122, 212, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(119, 37, 135, 0.06) 0%, transparent 60%);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.7;
  transition: background-color 0.4s, color 0.4s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== CURSOR ===== */
.custom-cursor {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, background 0.3s;
  box-shadow: 0 0 16px rgba(179, 122, 212, 0.3);
  background: rgba(179, 122, 212, 0.08);
}
.custom-cursor.expand {
  width: 40px;
  height: 40px;
  background: rgba(179, 122, 212, 0.2);
  border-color: var(--accent-dark);
  box-shadow: 0 0 30px rgba(179, 122, 212, 0.4);
}
@media (max-width: 768px) { .custom-cursor { display: none; } }

/* ===== BANNER SUPERIOR ===== */
.top-banner {
  position: relative;
  padding: 2.2rem 2rem;
  background: linear-gradient(135deg, #0e0a12 0%, #1e1630 100%);
  text-align: center;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 30px rgba(179, 122, 212, 0.15);
}
[data-theme="light"] .top-banner {
  background: linear-gradient(135deg, #e8dce8 0%, #f5f0f5 100%);
  border-bottom-color: var(--accent);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(179, 122, 212, 0.1), transparent 70%);
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
}
.logo-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.logo-symbol {
  font-size: 2.4rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(179, 122, 212, 0.3);
}
.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(179, 122, 212, 0.15);
}
.banner-tagline {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.4rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  opacity: 0.9;
  font-weight: 300;
  text-transform: uppercase;
}

/* ===== NAVEGACIÓN ===== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(18, 14, 26, 0.92);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  padding: 0.2rem 0;
}
[data-theme="light"] .nav-bar {
  background: rgba(245, 240, 245, 0.92);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(179, 122, 212, 0.2));
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08rem;
  align-items: center;
}
.nav-links li a {
  color: var(--text-secondary);
  padding: 0.3rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  text-decoration: none;
}
.nav-links li a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 8px rgba(179, 122, 212, 0.3);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.theme-toggle:hover {
  background: var(--accent);
  color: #0e0a12;
  box-shadow: 0 0 20px rgba(179, 122, 212, 0.3);
}
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.2rem 0.5rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(14, 10, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-120%);
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
    z-index: 1000;
  }
  [data-theme="light"] .nav-links {
    background: rgba(245, 240, 245, 0.98);
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links li a { font-size: 1.6rem; white-space: normal; }
  .top-banner { padding: 1.2rem 1rem; min-height: 90px; }
  .logo-text { font-size: 2.2rem; letter-spacing: 0.2rem; }
  .banner-tagline { font-size: 0.75rem; letter-spacing: 0.2rem; }
  .container { padding: 0 1.2rem; }
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1430 0%, #0e0a12 100%);
  z-index: 0;
}
[data-theme="light"] .hero-bg {
  background: radial-gradient(ellipse at center, #e8dce8 0%, #f5f0f5 100%);
}
#particlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 4.5rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px rgba(179, 122, 212, 0.15);
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}
.hero-sub {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}
.btn-primary {
  display: inline-block;
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  padding: 0.9rem 2.8rem;
  color: var(--btn-color);
  font-weight: 600;
  text-decoration: none;
  border-radius: 40px;
  transition: 0.3s;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 2px;
  backdrop-filter: blur(4px);
  background: rgba(179, 122, 212, 0.05);
}
.btn-primary:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-color);
  box-shadow: 0 0 40px rgba(179, 122, 212, 0.3);
  transform: translateY(-2px);
  border-color: var(--accent-dark);
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.3rem;
  font-weight: 300;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s infinite;
}
@keyframes scrollPulse {
  0% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== SECCIONES ===== */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: background 0.4s;
}
.section:nth-child(even) { background: var(--bg-secondary); }
.section:first-of-type { border-top: none; }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(179, 122, 212, 0.1);
}
.title-decoration {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0.8rem auto 0.4rem;
}
.section-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0.5rem auto 0;
  font-style: italic;
  font-weight: 300;
}

/* ===== GLASS EFFECT ===== */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  border-radius: 24px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.4s;
}
.glass-effect:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 48px rgba(179, 122, 212, 0.08);
}

/* ===== HISTORY ===== */
.history-card {
  padding: 2.5rem 3rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 3rem;
}
.history-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.link-underline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
  transition: 0.3s;
}
.link-underline:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

/* ===== VALUES (con tags) ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform 0.3s;
}
.value-item:hover { transform: translateY(-4px); }
.value-icon { font-size: 2.6rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.value-item h3 { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--accent); margin-bottom: 0.6rem; font-weight: 400; }
.value-item p { color: var(--text-secondary); font-size: 1rem; }
.values-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.values-tags span {
  background: var(--accent);
  color: #0e0a12;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  display: inline-block;
}
[data-theme="light"] .values-tags span {
  color: #f5f0f5;
}

/* ===== CATÁLOGO DE SERVICIOS ===== */
.service-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(179, 122, 212, 0.15);
  border-color: var(--accent);
}
.service-card .service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 10, 18, 0.85) 0%, transparent 60%);
  z-index: 1;
}
.service-card .service-content {
  position: relative;
  z-index: 2;
  color: var(--text-primary);
}
.service-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}
.service-card .service-tag {
  display: inline-block;
  background: var(--accent);
  color: #0e0a12;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ===== PORTAFOLIO ===== */
.portafolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.8rem;
  border: 2px solid var(--accent);
  background: transparent;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.3s;
  border-radius: 40px;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #0e0a12;
  box-shadow: 0 0 20px rgba(179, 122, 212, 0.2);
  border-color: var(--accent-dark);
}
.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.portafolio-item {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
}
.portafolio-item:hover { transform: translateY(-6px); border-color: var(--accent); }
.portafolio-cover { position: relative; aspect-ratio: 3/4; background: #1a1430; }
.portafolio-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-overlay {
  position: absolute; inset: 0;
  background: rgba(14, 10, 18, 0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: 0.4s;
}
.portafolio-item:hover .cover-overlay { opacity: 1; }
.btn-ver {
  padding: 0.6rem 1.8rem;
  background: var(--accent);
  color: #0e0a12;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-ver:hover { background: var(--accent-dark); }
.portafolio-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  padding: 0.8rem 1rem 0.2rem;
}
.portafolio-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0 1rem 0.8rem;
}
.portafolio-link {
  display: inline-block;
  margin: 0 1rem 1.2rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
  font-weight: 500;
  transition: 0.3s;
}
.portafolio-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

/* ===== NOVEDADES ===== */
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.novedad-card {
  overflow: hidden;
  transition: transform 0.3s;
}
.novedad-card:hover { transform: translateY(-6px); }
.novedad-img { height: 180px; overflow: hidden; }
.novedad-img img { width: 100%; height: 100%; object-fit: cover; }
.novedad-info { padding: 1.5rem; }
.novedad-fecha { font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.1rem; }
.novedad-info h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; margin: 0.3rem 0 0.5rem; color: var(--text-primary); font-weight: 400; }
.novedad-info p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== PROCESO ===== */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.proceso-paso {
  padding: 1.5rem 1rem;
  transition: transform 0.3s;
}
.proceso-paso:hover { transform: translateY(-4px); }
.proceso-icon img { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; background: var(--bg-card); padding: 0.5rem; border: 2px solid var(--accent); }
.proceso-paso h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--accent); margin-bottom: 0.3rem; font-weight: 400; }
.proceso-paso p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== IMPACTO (BLOG) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.blog-card {
  padding: 1.5rem 1.8rem;
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-date { font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.blog-card h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 400; }
.blog-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.8rem; }
.read-more { color: var(--accent); cursor: pointer; border-bottom: 2px solid var(--accent); padding-bottom: 0.1rem; display: inline-block; transition: 0.3s; }
.read-more:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.blog-expand { margin-top: 0.8rem; padding: 0.8rem 1rem; background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 12px; color: var(--text-secondary); font-style: italic; }

/* ===== ESTADÍSTICAS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.stat-item {
  padding: 1.8rem 1rem;
  transition: transform 0.3s;
}
.stat-item:hover { transform: translateY(-4px); }
.stat-number {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(179, 122, 212, 0.15);
}
.stat-label { font-size: 1rem; color: var(--text-secondary); font-weight: 300; }

/* ===== EQUIPO (más altas y menos anchas) ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0 3rem;
  justify-items: center;
}
.team-card {
  text-align: center;
  padding: 1.5rem 0.8rem 1.2rem;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.3s;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  max-width: 260px;
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 0.6rem; border: 3px solid var(--accent); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 500; color: var(--text-primary); }
.team-role { font-size: 1rem; color: var(--text-secondary); font-style: italic; }

/* ===== GALERÍA ===== */
.work-gallery { margin: 3rem 0 2rem; text-align: center; }
.gallery-sub { color: var(--text-secondary); font-style: italic; margin-bottom: 1.8rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  overflow: hidden;
  transition: transform 0.3s;
}
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }
.gallery-item span { display: block; padding: 0.8rem 1rem; font-weight: 400; color: var(--text-primary); background: var(--bg-card); border-top: 1px solid var(--border-color); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 0.5rem 0; margin-bottom: 0.5rem; border-radius: 16px; }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 0;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { font-size: 1.4rem; color: var(--accent); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 0.5rem; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 1rem; }
.faq-answer p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.faq-answer a { color: var(--accent); text-decoration: underline; }

/* ===== BOLETÍN ===== */
.boletin-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.boletin-form input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 40px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  transition: 0.3s;
}
.boletin-form input:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 20px rgba(179, 122, 212, 0.1); }

/* ===== OFICINAS Y CONTACTOS ===== */
.oficinas-wrapper-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .oficinas-wrapper-top { grid-template-columns: 1fr; } }
.oficina-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  transition: 0.2s;
}
.oficina-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.icon-img { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.oficina-card h4 { font-family: 'Cinzel', serif; font-size: 0.9rem; color: var(--accent); margin-bottom: 0.1rem; font-weight: 400; }
.oficina-card p { font-size: 0.95rem; color: var(--text-secondary); }
.oficinas-mapa { border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 700px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  transition: 0.2s;
}
.contact-item:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-item .icon-img { width: 36px; height: 36px; }
.contact-item a { color: var(--accent); font-weight: 500; transition: 0.3s; }
.contact-item a:hover { color: var(--accent-dark); }
.contact-form {
  padding: 2rem;
}
.contact-form h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--accent); margin-bottom: 1rem; font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 40px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 20px rgba(179, 122, 212, 0.1); }
.contact-form textarea { border-radius: 20px; }
.submit-btn {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.3rem;
  font-size: 1.1rem;
}
.form-feedback { margin-top: 0.8rem; font-weight: 400; text-align: center; font-size: 0.95rem; min-height: 1.8rem; color: var(--accent); }

/* ===== MODAL EQUIPO ===== */
.overlay-badge {
  position: fixed; inset: 0;
  background: rgba(10, 8, 16, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9998;
}
.badge-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 90%;
  max-width: 420px;
  perspective: 1200px;
}
.badge-flip-card {
  cursor: pointer;
  width: 100%;
  min-height: 400px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.badge-flip-card.flipped { transform: rotateY(180deg); }
.badge-flip-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  transform-style: preserve-3d;
}
.badge-front, .badge-back {
  position: absolute;
  width: 100%;
  min-height: 400px;
  backface-visibility: hidden;
  border-radius: 30px;
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--accent);
}
.badge-back { transform: rotateY(180deg); background: var(--bg-primary); }
.badge-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  margin-bottom: 1rem;
}
.badge-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-front h4 { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--text-primary); font-weight: 400; }
.badge-front p { color: var(--text-secondary); font-style: italic; }
.flip-hint { margin-top: 1rem; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1rem; }
.badge-back h4 { font-family: 'Cinzel', serif; color: var(--accent); margin-bottom: 0.5rem; font-weight: 400; }
.badge-back p { color: var(--text-secondary); }
.badge-close {
  margin-top: 1.2rem;
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 40px;
  background: var(--accent);
  color: #0e0a12;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.badge-close:hover { background: var(--accent-dark); }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  border-radius: 50%;
  box-shadow: 0 4px 30px rgba(179, 122, 212, 0.15);
  transition: 0.3s;
  text-decoration: none;
}
.wa-glow {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: wa-pulse 2.4s infinite;
}
.wa-icon { width: 32px; height: 32px; }
.whatsapp-float:hover {
  background: var(--accent);
  color: #0e0a12;
  box-shadow: 0 0 30px rgba(179, 122, 212, 0.3);
  transform: scale(1.08);
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== FOOTER ===== */
footer {
  background: #0e0a12;
  color: var(--text-secondary);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 2px solid var(--accent);
}
[data-theme="light"] footer {
  background: #e8dce8;
}
footer p { font-size: 1.1rem; letter-spacing: 0.05rem; }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin: 0.8rem 0; }
.footer-social a { display: inline-block; transition: 0.3s; }
.footer-social a:hover { transform: scale(1.1); opacity: 0.7; }
.footer-copy { font-size: 0.8rem; opacity: 0.5; letter-spacing: 0.05rem; margin-top: 0.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.4rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-title { font-size: 2rem; }
  .hero-sub { font-size: 1.1rem; padding: 0 1rem; }
  .btn-primary { padding: 0.7rem 2rem; font-size: 0.9rem; }
  .history-card { padding: 1.5rem; }
  .portafolio-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .novedades-grid, .testimonios-grid, .blog-grid, .proceso-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 2.2rem; }
  .service-catalog-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 200px; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .portafolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .proceso-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.8rem; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .container { padding: 0 1rem; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 15px; right: 15px; }
  .service-catalog-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 180px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-avatar { width: 80px; height: 80px; }
  .team-name { font-size: 1rem; }
  .team-role { font-size: 0.8rem; }
  .team-card { min-height: 280px; max-width: 200px; }
}