/* ===== ODAM - CSS OPTIMIZADO Y CORREGIDO ===== */

/* === VARIABLES Y CONFIGURACIÓN PRINCIPAL === */
:root {
  --primary-black: #000000;
  --deep-black: #0a0a0a;
  --rich-gold: #c8a25f;
  --vibrant-gold: #d4af37;
  --light-gold: #e6c875;
  --dark-gold: #b89446;
  --pure-white: #ffffff;
  --off-white: #f8f9fa;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --text-dark: #333333;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(200, 162, 95, 0.3);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 5px 20px rgba(200, 162, 95, 0.3);
  --max-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 80px;
  --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

/* === RESET Y CONFIGURACIÓN BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--primary-black);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-weight: var(--font-normal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* === FONDOS Y PARTÍCULAS === */
.full-page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('tu-fondo.webp');
  background-size: cover;
  background-position: center top 20%;
  background-attachment: scroll;
  opacity: 0.30;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
  content-visibility: auto;
}

@media (min-width: 1024px) {
  .full-page-background {
    background-attachment: fixed;
  }
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: transparent;
}

@media (max-width: 768px) {
  #particles-js {
    display: none;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === HEADER MEJORADO === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-gold);
  aspect-ratio: 1 / 1;
  content-visibility: auto;
}

.brand h1 {
  margin: 0;
  color: var(--rich-gold);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  letter-spacing: 0.5px;
}

/* === NAVEGACIÓN DESKTOP === */
nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-medium);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
}

nav a:hover {
  color: var(--rich-gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rich-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 80%;
}

.cta {
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  color: var(--primary-black);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: var(--font-semibold);
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* === NAVEGACIÓN MÓVIL - CORREGIDA === */
.nav-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.nav-toggle .hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--rich-gold);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
  }

  nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-md);
    z-index: 999;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-light);
  }

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

  .cta {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-sm);
  }
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 var(--space-xxl);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xxl);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
    margin-top: 0;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--rich-gold);
  font-weight: var(--font-semibold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(200, 162, 95, 0.1);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-gold);
}

.h-title {
  color: var(--text-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.highlight {
  color: var(--rich-gold);
  background: linear-gradient(135deg, var(--rich-gold), var(--light-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h-sub {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .h-sub {
    margin: 0 0 var(--space-xl);
  }
}

.actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 1024px) {
  .actions {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: var(--font-semibold);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  color: var(--primary-black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(200, 162, 95, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--rich-gold);
  border: 2px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(200, 162, 95, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  color: var(--primary-black);
  border: none;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 162, 95, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--rich-gold);
  border: 2px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(200, 162, 95, 0.1);
  transform: translateY(-2px);
}

.stats {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .stats {
    justify-content: flex-start;
  }
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
  min-width: 120px;
}

.stat-number {
  color: var(--rich-gold);
  font-size: 2rem;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: var(--font-medium);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-visual {
    margin-top: 85px;
    margin-left: 150px;
    transform: translateY(0);
    align-self: start;
  }
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
  .profile-card {
    margin: 0;
  }
}

.profile-image-container {
    position: relative;
    margin-bottom: var(--space-md);
    overflow: hidden;
    contain: layout style paint;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-gold);
    box-shadow: var(--shadow-gold);
    display: block;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    content-visibility: auto;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 162, 95, 0.1), transparent);
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: var(--space-sm);
}

.profile-badge {
    background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
    color: var(--primary-black);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 480px) {
  .profile-badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

.profile-info h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-xs);
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.profile-info .visual-tag {
  display: inline-block !important;
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  color: var(--primary-black);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-bold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-sm);
  white-space: nowrap;
  overflow: visible;
}

.pwa-badge {
  margin-top: 10px;
  background: var(--rich-gold);
  color: black;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-badge:hover {
  transform: scale(1.05);
  background: var(--vibrant-gold);
}

/* === SECCIONES GENERALES === */
.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* === SERVICIOS - CORREGIDO === */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-section::before {
  display: none !important;
}

.services-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.service-accordion-item {
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.service-accordion-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, 
        rgba(200, 162, 95, 0.05) 0%, 
        rgba(200, 162, 95, 0.02) 50%,
        rgba(200, 162, 95, 0.05) 100%);
    border: 1px solid rgba(200, 162, 95, 0.1);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.service-accordion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(200, 162, 95, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.service-accordion-header:hover::before {
    left: 100%;
}

.service-accordion-header:hover {
    background: linear-gradient(135deg, 
        rgba(200, 162, 95, 0.08) 0%, 
        rgba(200, 162, 95, 0.04) 50%,
        rgba(200, 162, 95, 0.08) 100%);
    border-color: rgba(200, 162, 95, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 162, 95, 0.15);
}

.service-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-black);
    flex-shrink: 0;
}

.service-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.service-header-text h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.service-concept {
    color: var(--rich-gold);
    font-weight: var(--font-semibold);
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}

.accordion-arrow {
    color: var(--rich-gold);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.service-accordion-content {
    background: var(--card-bg);
    border: 1px solid rgba(200, 162, 95, 0.1);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -1px;
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.service-accordion-item.active .service-accordion-content {
    padding: 0 var(--space-lg) var(--space-lg);
    max-height: 1000px;
    opacity: 1;
}

.service-accordion-item.active .service-accordion-header {
    background: linear-gradient(135deg, 
        rgba(200, 162, 95, 0.1) 0%, 
        rgba(200, 162, 95, 0.05) 50%,
        rgba(200, 162, 95, 0.1) 100%);
    border-color: rgba(200, 162, 95, 0.4);
    border-bottom: 1px solid transparent;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.service-accordion-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.service-features li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.4;
}

.service-features i {
  color: var(--rich-gold);
  font-size: 0.8rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.service-ideal {
    background: rgba(200, 162, 95, 0.05);
    border-left: 3px solid var(--rich-gold);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.service-ideal strong {
    color: var(--rich-gold);
    display: block;
    margin-bottom: var(--space-xs);
}

.consultancy-subservices {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.subservice-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
}

.subservice-icon {
    width: 40px;
    height: 40px;
    background: rgba(200, 162, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rich-gold);
    flex-shrink: 0;
}

.subservice-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

.subservice-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* === PROYECTOS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  contain: layout style paint;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--deep-black), var(--primary-black));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: layout style paint;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(200, 162, 95, 0.1), transparent);
}

.project-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  color: var(--primary-black);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-content {
  padding: var(--space-xl);
}

.project-content h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.tag {
  background: rgba(200, 162, 95, 0.1);
  color: var(--rich-gold);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  border: 1px solid var(--border-gold);
}

/* === SECCIÓN INSPIRACIÓN - CORREGIDA === */

.inspiration-section {
  position: relative;
  z-index: 1;
}

.inspiration-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

#bible-verse {
  background: linear-gradient(135deg, 
      rgba(200, 162, 95, 0.15) 0%, 
      rgba(212, 175, 55, 0.1) 100%);
  color: var(--text-primary);
  padding: 50px 40px;
  border-radius: var(--border-radius-lg);
  margin: 30px 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column; /* CORRECCIÓN: Cambiado a columna */
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

#bible-verse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
      rgba(200, 162, 95, 0.05) 0%, 
      transparent 50%,
      rgba(212, 175, 55, 0.05) 100%);
  z-index: 1;
}

#bible-verse::after {
  content: '"';
  font-size: 140px;
  position: absolute;
  top: 10px;
  left: 30px;
  opacity: 0.08;
  color: var(--rich-gold);
  font-family: serif;
  z-index: 1;
}

#bible-verse:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 162, 95, 0.5);
  box-shadow: 0 20px 50px rgba(200, 162, 95, 0.2);
}

.verse-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column; /* CORRECCIÓN: Aseguramos disposición vertical */
  gap: 15px; /* CORRECCIÓN: Espacio entre texto y referencia */
}

.verse-text {
  font-size: 1.5em;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0; /* CORRECCIÓN: Eliminamos margen inferior */
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: var(--font-light);
  width: 100%; /* CORRECCIÓN: Aseguramos ancho completo */
}

.verse-reference {
  font-size: 1.5em;
  font-weight: var(--font-semibold);
  color: var(--rich-gold);
  margin: 0; /* CORRECCIÓN: Eliminamos márgenes conflictivos */
  font-style: normal;
  letter-spacing: 0.5px;
  position: relative;
  padding-top: 15px;
  width: 100%; /* CORRECCIÓN: Aseguramos ancho completo */
}

/* ✅ CORRECCIÓN: Eliminamos la línea que estaba entre el versículo y la referencia */
/* .verse-reference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--rich-gold);
    opacity: 0.6;
} */

/* Estados de carga y error */
#bible-verse.loading .verse-text {
  color: var(--text-muted);
  font-style: normal;
}

#bible-verse.error .verse-text {
  color: #ff6b6b;
  font-style: normal;
}

/* Animación de fade in para nuevos versículos */
.verse-fade-in {
  animation: verseFadeIn 0.8s ease-out;
}

@keyframes verseFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  #bible-verse {
    padding: 40px 25px;
    margin: 20px 0;
    min-height: 150px;
  }
  
  .verse-text {
    font-size: 1.3em;
  }
  
  .verse-reference {
    font-size: 1em;
  }
  
  #bible-verse::after {
    font-size: 100px;
    left: 15px;
    top: 5px;
  }
  
  .verse-reference::before {
    width: 30px;
  }
}

@media (max-width: 480px) {
  #bible-verse {
    padding: 30px 20px;
    min-height: 130px;
  }
  
  .verse-text {
    font-size: 1.1em;
  }
  
  .verse-reference {
    font-size: 0.9em;
  }
  
  #bible-verse::after {
    font-size: 80px;
    left: 10px;
  }
}

/* === CONTACTO === */
.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
  contain: layout style paint;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-black);
  contain: layout style paint;
}

.contact-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.colored-social .social-link {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.colored-social .social-link.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
  transform: translateY(-2px);
}

.colored-social .social-link.tiktok:hover {
  background: #000000;
  color: white;
  border-color: #000000;
  transform: translateY(-2px);
}

.colored-social .social-link.threads:hover {
  background: #000000;
  color: white;
  border-color: #000000;
  transform: translateY(-2px);
}

.colored-social .social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* === FOOTER === */
footer {
  background: var(--deep-black);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xxl) 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-brand {
    justify-content: center;
    text-align: center;
  }
}

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-gold);
  aspect-ratio: 1 / 1;
  content-visibility: auto;
}

.footer-brand h3 {
  color: var(--rich-gold);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-links {
    align-items: flex-start;
  }
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-social.colored-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-social.colored-social {
    justify-content: flex-end;
  }
}

.footer-social.colored-social a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: var(--space-xs);
  border-radius: 4px;
}

.footer-social.colored-social a.facebook:hover {
  color: #1877f2;
  transform: translateY(-2px);
}

.footer-social.colored-social a.tiktok:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social.colored-social a.threads:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social.colored-social a.instagram:hover {
  color: #e4405f;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-content {
  background: var(--deep-black);
  border: 1px solid var(--border-gold);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  color: var(--rich-gold);
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-form {
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rich-gold);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }
}

/* === ANIMACIONES Y EFECTOS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* === MEJORAS RESPONSIVE ADICIONALES === */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 var(--space-xl);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .stats {
    justify-content: center;
    gap: var(--space-md);
  }

  .stat-card {
    min-width: 100px;
    padding: var(--space-sm);
  }

  .service-accordion-header {
    padding: var(--space-md);
  }

  .service-header-content {
    gap: var(--space-md);
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .service-header-text h3 {
    font-size: 1.1rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .full-page-background {
    background-position: center top 30%;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-content {
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
    margin-bottom: var(--space-md);
    padding-left: 20px;
  }

  .footer-links {
    align-items: flex-start;
    text-align: left;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .h-title {
    font-size: 2rem;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .service-card,
  .project-card,
  .consultancy-card,
  .contact-card {
    padding: var(--space-lg);
  }

  .subservice-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .modal-content {
    margin: var(--space-sm);
    max-height: 95vh;
  }

  .contact-form {
    padding: var(--space-md);
  }

  #bible-verse {
    padding: 30px 20px;
    margin: 15px 0;
  }
  
  .verse-text {
    font-size: 1.2em;
  }
  
  .verse-reference {
    font-size: 1em;
  }
  
  #bible-verse::before {
    font-size: 80px;
    left: 10px;
    top: 5px;
  }
}

/* === REPRODUCTOR DE AUDIO MEJORADO === */
.audio-player-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(200, 162, 95, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
}

.audio-player-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 162, 95, 0.1), transparent);
    transition: left 0.6s ease;
}

.audio-player-mini:hover::before {
    left: 100%;
}

.audio-player-mini:hover {
    border-color: rgba(200, 162, 95, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 162, 95, 0.15);
}

.audio-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
    border: none;
    color: var(--primary-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(200, 162, 95, 0.3);
    position: relative;
    overflow: hidden;
}

.audio-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.audio-play-btn:hover::before {
    left: 100%;
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(200, 162, 95, 0.4);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-play-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.audio-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.audio-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 2px;
}

.audio-time {
    color: var(--rich-gold);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
    background: rgba(200, 162, 95, 0.1);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(200, 162, 95, 0.2);
    order: 3;
    margin-top: 5px;
}

/* === ONDAS DE AUDIO INTERACTIVAS === */
.audio-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 40px;
  width: 100%;
  gap: 3px;
  padding: 5px 0;
  contain: layout style;
  position: relative;
}

.wave-bar {
  flex: 1;
  min-height: 4px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--rich-gold), var(--vibrant-gold));
  transition: height 0.1s ease, opacity 0.2s ease;
  will-change: height, opacity;
  box-shadow: 0 2px 6px rgba(200, 162, 95, 0.3);
}

.audio-player-mini:not(.playing) .wave-bar {
  animation: waveIdle 2s ease-in-out infinite;
  opacity: 0.6;
  background: linear-gradient(180deg, rgba(200, 162, 95, 0.6), rgba(212, 175, 55, 0.4));
}

.wave-bar:nth-child(1) { animation-delay: 0s; height: 20%; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 40%; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 60%; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; height: 80%; }
.wave-bar:nth-child(5) { animation-delay: 0.8s; height: 70%; }
.wave-bar:nth-child(6) { animation-delay: 1.0s; height: 50%; }
.wave-bar:nth-child(7) { animation-delay: 1.2s; height: 30%; }
.wave-bar:nth-child(8) { animation-delay: 1.4s; height: 20%; }

.audio-player-mini.playing .wave-bar {
  opacity: 1;
  background: linear-gradient(180deg, var(--rich-gold), var(--vibrant-gold));
}

@keyframes waveIdle {
  0%, 100% { 
    transform: scaleY(0.8);
    opacity: 0.4;
  }
  50% { 
    transform: scaleY(1.1);
    opacity: 0.7;
  }
}

/* === LOADING PROGRESS === */
.loading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(200, 162, 95, 0.1);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.loading-progress.loading {
  opacity: 1;
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--rich-gold), var(--vibrant-gold));
  width: 0%;
  transition: width 0.4s ease;
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* === MEJORAS DE ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .wave-bar {
    animation: none !important;
  }
}

:focus-visible {
  outline: 3px solid var(--rich-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.audio-play-btn:focus-visible {
  outline: 3px solid var(--rich-gold);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  :root {
    --primary-black: #000000;
    --text-primary: #ffffff;
    --rich-gold: #ffd700;
    --border-gold: #ffd700;
  }
  
  .btn-primary,
  .btn-gold {
    color: #000000 !important;
  }
}

/* === SELECT PERSONALIZADO === */
.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a25f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.form-group select option {
  background: var(--deep-black);
  color: var(--text-primary);
  padding: 10px;
}

/* === CLASES UTILITARIAS === */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: #b0b0b0;
  margin-top: 5px;
}

.visual-tag {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

/* === CORRECCIONES ESPECÍFICAS PARA EL VERSÍCULO === */
.verse-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.verse-text {
  display: block;
  width: 100%;
}

.verse-reference {
  display: block;
  width: 100%;
}
