/*
Theme Name: VISSION360
Theme URI: https://vission360.es
Author: VISSION360
Author URI: https://vission360.es
Description: Tema profesional para VISSION360 - Servicios de fotograf铆a inmobiliaria, tours virtuales 360掳 y marketing digital.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vission360
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

/* Theme: ELITE (Default) */
:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #c9a84c;
  --accent-light: #dfc06e;
  --accent-dark: #a88b35;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-tertiary: #eef1f7;
  --bg-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Sora', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255,255,255,0.8);
  --glass-border: rgba(255,255,255,0.3);
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
  --gradient-accent: linear-gradient(135deg, #c9a84c 0%, #dfc06e 100%);
  --gradient-hero: linear-gradient(135deg, rgba(26,54,93,0.92) 0%, rgba(15,36,64,0.88) 100%);
  --service-icon-bg: linear-gradient(135deg, #1a365d15 0%, #c9a84c15 100%);
}

/* Theme: HORIZON */
[data-theme="horizon"] {
  --primary: #0369a1;
  --primary-light: #0284c7;
  --primary-dark: #075985;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --bg-primary: #ffffff;
  --bg-secondary: #f0f9ff;
  --bg-tertiary: #e0f2fe;
  --bg-dark: #0c4a6e;
  --text-primary: #0c4a6e;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --gradient-primary: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-hero: linear-gradient(135deg, rgba(3,105,161,0.93) 0%, rgba(7,89,133,0.90) 100%);
  --service-icon-bg: linear-gradient(135deg, #0369a115 0%, #f59e0b15 100%);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Sora', sans-serif;
}

/* Theme: NATURE */
[data-theme="nature"] {
  --primary: #166534;
  --primary-light: #15803d;
  --primary-dark: #14532d;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-dark: #b45309;
  --bg-primary: #ffffff;
  --bg-secondary: #f0fdf4;
  --bg-tertiary: #dcfce7;
  --bg-dark: #14532d;
  --text-primary: #14532d;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --gradient-primary: linear-gradient(135deg, #166534 0%, #15803d 100%);
  --gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, rgba(22,101,52,0.93) 0%, rgba(20,83,45,0.90) 100%);
  --service-icon-bg: linear-gradient(135deg, #16653415 0%, #d9770615 100%);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Sora', sans-serif;
}

/* Theme: MINIMAL */
[data-theme="minimal"] {
  --primary: #18181b;
  --primary-light: #27272a;
  --primary-dark: #09090b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f4f4f5;
  --bg-dark: #18181b;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-light: #a1a1aa;
  --border: #e4e4e7;
  --border-light: #f4f4f5;
  --gradient-primary: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --gradient-hero: linear-gradient(135deg, rgba(24,24,27,0.90) 0%, rgba(9,9,11,0.92) 100%);
  --service-icon-bg: linear-gradient(135deg, #18181b08 0%, #6366f108 100%);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Sora', sans-serif;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. THEME SWITCHER PANEL
   ========================================================================== */
.theme-panel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 8px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 18px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  padding-right: 14px;
}

.theme-options {
  position: absolute;
  right: 52px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.theme-options.active { display: flex; }

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.theme-option:hover {
  background: var(--bg-secondary);
}

.theme-option.active {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.theme-color-preview {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  border: 2px solid var(--border);
}

.theme-color-preview span {
  flex: 1;
}

.theme-option-label {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
}

.theme-option-sublabel {
  font-size: 12px;
  color: var(--text-light);
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
  .navbar {
    top: 0;
  }
}

/* Hero page: white text on transparent navbar */
.has-hero-page .navbar:not(.scrolled) .nav-link,
.has-hero-page .navbar:not(.scrolled) .nav-logo-text,
.has-hero-page .navbar:not(.scrolled) .mobile-menu-btn span {
  color: #ffffff;
}

.has-hero-page .navbar:not(.scrolled) .nav-logo-text span {
  color: var(--accent-light);
}

.has-hero-page .navbar:not(.scrolled) .nav-link::after {
  background: var(--accent-light);
}

.has-hero-page .navbar:not(.scrolled) .nav-link:hover {
  color: rgba(255,255,255,0.85);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  transition: var(--transition);
}

.has-hero-page .navbar:not(.scrolled) .nav-logo-icon {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.36);
  backdrop-filter: blur(8px);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.nav-logo-text span {
  color: var(--accent);
}

/* Custom logo from Customizer */
.nav-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo .custom-logo-link img {
  max-height: 50px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

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

.nav-link:hover {
  color: var(--primary);
}

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

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 10;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.has-hero-page .navbar:not(.scrolled) .mobile-menu-btn span {
  background: #ffffff;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-btn.active span {
  background: var(--text-primary);
}

.has-hero-page .navbar:not(.scrolled) .mobile-menu-btn.active span {
  background: var(--text-primary);
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9997;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 9998;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu .nav-link {
  font-size: 20px;
}

.mobile-nav-item {
  list-style: none;
}

.mobile-nav-link {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .accent {
  color: var(--accent-light);
  position: relative;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-light);
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-accent);
  margin-top: 2px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: var(--font-accent);
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

/* ==========================================================================
   6. SECTION COMMON
   ========================================================================== */
.section {
  padding: 50px 0;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--service-icon-bg);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   7. SERVICES SECTION
   ========================================================================== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 20px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--service-icon-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  transform: scale(1.05);
}

.service-card:hover .service-icon svg {
  filter: brightness(0) invert(1);
}

.service-title {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-price {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.service-price-note {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.service-link:hover {
  gap: 10px;
  color: var(--accent);
}

.service-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.service-extra .service-desc {
  margin-bottom: 0;
}

.service-expand-btn {
  margin-top: 8px;
  margin-bottom: 0;
}

/* Featured card */
.service-card.featured {
  border: 2px solid var(--accent);
  background: var(--bg-primary);
}

.service-card.featured .service-badge-card {
  display: inline-block;
}

.service-badge-card {
  display: none;
  padding: 4px 12px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ==========================================================================
   8. ABOUT / STATS SECTION
   ========================================================================== */
.about {
  background: var(--bg-primary);
}

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

.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.about-feature-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-accent);
  margin-top: 6px;
}

/* ==========================================================================
   9. HOW IT WORKS
   ========================================================================== */
.how-it-works {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 32px 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   10. PORTFOLIO SECTION
   ========================================================================== */
.portfolio {
  background: var(--bg-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

.portfolio-info h3 {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.portfolio-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.portfolio-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-accent);
}

/* ==========================================================================
   11. PRICING SECTION
   ========================================================================== */
.pricing {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-light);
}

.pricing-card.popular {
  border-color: var(--accent);
  background: var(--bg-primary);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
}

.pricing-amount span {
  font-size: 16px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 400;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--service-icon-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.pricing-btn:hover {
  background: var(--primary);
  color: white;
}

.pricing-card.popular .pricing-btn {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.pricing-card.popular .pricing-btn:hover {
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   12. TESTIMONIALS
   ========================================================================== */
.testimonials {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  overflow: hidden;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.testimonial-name {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-light);
}

/* ==========================================================================
   13. FAQ SECTION
   ========================================================================== */
.faq {
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 16px;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  min-width: 24px;
  text-align: center;
  color: var(--accent);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================================================
   14. CTA SECTION
   ========================================================================== */
.cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: none;
  display: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   15. CONTACT SECTION
   ========================================================================== */
.contact {
  background: var(--bg-primary);
}

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

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--service-icon-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-item-label {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: var(--transition);
  outline: none;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card input[type="number"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.contact-form-card input[type="text"]:focus,
.contact-form-card input[type="email"]:focus,
.contact-form-card input[type="tel"]:focus,
.contact-form-card input[type="number"]:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Contact Form 7 styling aligned with theme form */
.contact-form-card .wpcf7 {
  width: 100%;
}

.contact-form-card .wpcf7 form {
  display: grid;
  gap: 18px;
}

.contact-form-card .wpcf7 label {
  display: block;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form-card .wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.contact-form-card .wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-card .wpcf7 input[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form-card .wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-form-card .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
}

.contact-form-card .wpcf7 form .wpcf7-response-output {
  margin: 10px 0 0;
  border-radius: var(--radius-md);
  font-size: 13px;
  padding: 10px 12px;
}

/* Built-in contact form: force same theme style on Home/Contacto */
#vission360-contact-form {
  display: grid;
  gap: 18px;
}

#vission360-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

#vission360-contact-form .form-group {
  margin-bottom: 0;
}

#vission360-contact-form .form-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

#vission360-contact-form .form-input,
#vission360-contact-form .form-select,
#vission360-contact-form .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: var(--transition);
  outline: none;
}

#vission360-contact-form .form-input:focus,
#vission360-contact-form .form-select:focus,
#vission360-contact-form .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

#vission360-contact-form .form-textarea {
  min-height: 120px;
  resize: vertical;
}

#vission360-contact-form .form-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

#vission360-contact-form .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  #vission360-contact-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Home: centrar el bloque de formulario */
.vission360-front-page #contact .contact-form {
  display: flex;
  justify-content: center;
}

.vission360-front-page #contact .contact-form .contact-form-card {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* Contact Form messages */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

.form-message.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

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

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: white;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: var(--transition);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-widget-title {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-widget {
  margin-bottom: 16px;
}

.footer-widget a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-widget a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

/* ==========================================================================
   17. BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 20px;
  cursor: pointer;
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

/* ==========================================================================
   18. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   19. PAGE HERO BANNER (Internal Pages)
   ========================================================================== */
.page-hero-banner {
  position: relative;
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-banner .hero-badge {
  animation: none;
}

.page-hero-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-banner p {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-list .separator {
  color: var(--text-light);
  font-size: 12px;
}

.breadcrumb-list .current {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   20. SERVICE DETAIL PAGE
   ========================================================================== */
.service-detail-section {
  padding: 80px 0;
}

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

.service-detail-content {
  min-width: 0;
}

.service-detail-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.service-detail-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
  margin-top: 40px;
}

.service-detail-content h3 {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  margin-top: 28px;
}

.service-detail-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-detail-content ul,
.service-detail-content ol {
  margin-bottom: 16px;
  padding-left: 0;
}

.service-detail-content ul li,
.service-detail-content ol li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  list-style: none;
}

.service-detail-content ul li::before {
  content: '鉁�';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Rich text links in pages/posts */
.service-detail-content p a,
.service-detail-content li a,
.service-detail-content td a,
.entry-content p a,
.entry-content li a,
.entry-content td a,
.post-content p a,
.post-content li a,
.post-content td a,
.wp-block-post-content p a,
.wp-block-post-content li a,
.wp-block-post-content td a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.service-detail-content p a:hover,
.service-detail-content li a:hover,
.service-detail-content td a:hover,
.entry-content p a:hover,
.entry-content li a:hover,
.entry-content td a:hover,
.post-content p a:hover,
.post-content li a:hover,
.post-content td a:hover,
.wp-block-post-content p a:hover,
.wp-block-post-content li a:hover,
.wp-block-post-content td a:hover {
  color: var(--primary);
}

/* Service Nav Sidebar */
.service-nav-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.service-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-nav-list a {
  display: block;
  padding: 12px 18px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: var(--transition);
}

.service-nav-list a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-left-color: var(--border);
}

.service-nav-list a.active {
  background: var(--service-icon-bg);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--accent);
}

/* ==========================================================================
   21. RELATED SERVICES
   ========================================================================== */
.related-services {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.related-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ==========================================================================
   22. BEFORE / AFTER COMPONENT
   ========================================================================== */

/* --- Grid Layout --- */
.ba-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.ba-center {
  display: flex;
  justify-content: center;
}

/* --- Card --- */
.ba-card {
  max-width: 380px;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  background: var(--bg-primary);
}

/* --- Aspect Ratio Classes --- */
.ar-916 {
  aspect-ratio: 9 / 16;
}

.ar-23 {
  aspect-ratio: 2 / 3;
}

.ar-34 {
  aspect-ratio: 3 / 4;
}

.ar-45 {
  aspect-ratio: 4 / 5;
}

.ar-11 {
  aspect-ratio: 1 / 1;
}

.ar-auto {
  aspect-ratio: auto;
}

/* --- Media Layer (absolute fill) --- */
.ba-media-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-media-layer img,
.ba-media-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------
   SLIDER STYLE (Before/After)
   ---------------------------------------- */
.slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sl-before,
.sl-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sl-before img,
.sl-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sl-after {
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}

.sl-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  pointer-events: none;
}

.sl-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.sl-handle svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.slider-wrap.dragging .sl-handle {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Slider badges */
.sl-badge {
  position: absolute;
  top: 16px;
  z-index: 5;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

.sl-badge.antes {
  left: 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
}

.sl-badge.despues {
  right: 16px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
}

/* Slider hint */
.sl-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 4px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.slider-wrap.interacted .sl-hint {
  opacity: 0;
}

/* ----------------------------------------
   FLIP STYLE (Before/After)
   ---------------------------------------- */
.flip-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.fl-before,
.fl-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.fl-before img,
.fl-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Default state: before is visible, after is hidden */
.fl-before {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.fl-after {
  opacity: 0;
  transform: scale(1.045);
  z-index: 2;
}

/* Flipped state: after is visible, before fades */
.flip-wrap.flipped .fl-before {
  opacity: 0;
  transform: scale(1.045);
}

.flip-wrap.flipped .fl-after {
  opacity: 1;
  transform: scale(1);
}

/* Gradient overlay at bottom of flip card */
.fl-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Flip CTA button */
.fl-cta {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 10px 24px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
  transition: var(--transition);
  pointer-events: none;
}

.flip-wrap.flipped .fl-cta {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Flip badges */
.fl-badge {
  position: absolute;
  top: 16px;
  z-index: 4;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
  transition: opacity 0.48s ease;
}

.fl-badge.b {
  left: 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  opacity: 1;
}

.fl-badge.a {
  right: 16px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  opacity: 0;
}

.flip-wrap.flipped .fl-badge.b {
  opacity: 0;
}

.flip-wrap.flipped .fl-badge.a {
  opacity: 1;
}

/* ----------------------------------------
   TABS STYLE (Before/After)
   ---------------------------------------- */
.tabs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tabs-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.tb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.tb:hover {
  color: var(--text-primary);
}

.tb.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Phone mockup for tab content */
.tab-phone {
  max-width: 360px;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  background: var(--bg-primary);
}

.tab-phone-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tab-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tab-panel img,
.tab-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-panel.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   23. VIDEO WEBP SECTION
   ========================================================================== */
.video-webp-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.video-webp-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.video-webp-container video {
  width: 100%;
  display: block;
}

.video-webp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.video-webp-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-webp-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-webp-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(0,0,0,0.3);
}

.video-webp-play-btn svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-left: 4px;
}

/* ==========================================================================
   24. WHATSAPP FLOAT BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0);
  text-decoration: none;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ==========================================================================
   25. ERROR 404
   ========================================================================== */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.error-404-content {
  max-width: 500px;
}

.error-404 h1 {
  font-family: var(--font-heading);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
}

.error-404 h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-404 p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ==========================================================================
   26. SEARCH FORM
   ========================================================================== */
.search-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  transition: var(--transition);
}

.search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.search-submit {
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* WordPress search form overrides */
.search-form .search-submit {
  line-height: 1;
}

/* ==========================================================================
   27. RESPONSIVE
   ========================================================================== */

/* --- Mobile (640px) --- */
@media (max-width: 640px) {
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat-number {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    justify-content: center;
  }

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

  .ba-card {
    max-width: 100%;
  }

  .ba-grid {
    gap: 16px;
  }

  .sl-handle {
    width: 36px;
    height: 36px;
  }

  .sl-handle svg {
    width: 18px;
    height: 18px;
  }

  .tabs-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab-phone {
    max-width: 100%;
    border-radius: 20px;
  }
}

/* --- Tablet (768px) --- */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .related-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Desktop (1024px) --- */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr 280px; }

  .related-services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Large (1200px) --- */
@media (min-width: 1200px) {
  .container {
    max-width: 1280px;
  }
}

/* --- Mobile-only overrides (max-width) --- */
@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }

  .page-hero-banner {
    padding: 130px 0 60px;
  }

  .service-detail-section {
    padding: 48px 0;
  }

  .service-detail-grid {
    gap: 32px;
  }

  .related-services {
    padding: 48px 0;
  }

  .contact-form-card {
    padding: 28px;
  }
}

/* --- Small mobile (480px) --- */
@media (max-width: 480px) {
  .hero-content {
    padding: 120px 0 60px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .service-card {
    padding: 24px;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .contact-form-card {
    padding: 20px;
  }
}

/* ==========================================================================
   FIXES: HTML/CSS CLASS MISMATCH RESOLUTION
   ========================================================================== */

/* --- ISSUE 1: FAQ accordion (front-page.php uses .faq-answer directly) --- */
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- ISSUE 3: Portfolio items (front-page.php uses .portfolio-item) --- */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover img {
  transform: scale(1.08);
}
.portfolio-item .portfolio-overlay h3 {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.portfolio-item .portfolio-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* --- ISSUE 4: Stats section (front-page.php uses .stat-card, .stat-number, .stat-label) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-accent);
  margin-top: 6px;
}

/* --- ISSUE 5: Pricing section (front-page.php structure mismatch) --- */
/* Pricing card header */
.pricing-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-header h3 {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
/* Featured pricing card */
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
/* Pricing features list */
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.pricing-cross {
  color: var(--text-light);
  font-size: 14px;
  flex-shrink: 0;
}
.pricing-disabled {
  opacity: 0.5;
}
/* Pricing CTA buttons in cards */
.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
}

/* --- ISSUE 6: Testimonial avatar with img tag --- */
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

/* --- ISSUE 7: Steps section h3/p direct styling --- */
.step-card h3 {
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- ISSUE 8: Page hero banner --- */
.page-hero-banner {
  background: var(--gradient-hero);
  padding: 160px 0 80px;
  text-align: center;
  color: white;
}
.page-hero-banner .hero-badge {
  margin-bottom: 16px;
}
.page-hero-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-hero-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- ISSUE 9: Breadcrumb --- */
.breadcrumb {
  background: var(--bg-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb-list a {
  color: var(--primary);
  transition: var(--transition);
}
.breadcrumb-list a:hover {
  color: var(--accent);
}
.breadcrumb-list .separator {
  color: var(--text-light);
}
.breadcrumb-list .current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- ISSUE 10: Additional responsive breakpoints --- */
/* Ensure .portfolio-items-grid is also responsive */
@media (min-width: 768px) {
  .portfolio-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: flex;
  }
  .nav-logo-text {
    font-size: 22px;
  }
  .mobile-menu-btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .portfolio-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 32px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   28. PATCHES: MENU / SERVICES / BEFORE-AFTER / SERVICE TEMPLATE
   ========================================================================== */

/* Main menu and mobile menu list bullets fix */
.nav-links > li,
.mobile-menu > li,
.svc-nav-list > li {
  list-style: none;
}

.nav-links > li {
  display: inline-flex;
}

.svc-nav-list {
  margin: 0;
  padding: 0;
}

/* Testimonial initials (no avatar image) */
.testimonial-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Home before/after (ba-*) visual system */
.ba-card {
  aspect-ratio: 4 / 5;
}

.ba-card[data-ba-ratio="9/16"] { aspect-ratio: 9 / 16; }
.ba-card[data-ba-ratio="2/3"] { aspect-ratio: 2 / 3; }
.ba-card[data-ba-ratio="3/4"] { aspect-ratio: 3 / 4; }
.ba-card[data-ba-ratio="4/5"] { aspect-ratio: 4 / 5; }
.ba-card[data-ba-ratio="1/1"] { aspect-ratio: 1 / 1; }
.ba-card[data-ba-ratio="auto"] { aspect-ratio: auto; }

.ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
}

.ba-slider-before,
.ba-slider-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-slider-before img,
.ba-slider-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider-after {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-slider-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
}

.ba-slider-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

.ba-slider-label {
  position: absolute;
  top: 12px;
  z-index: 4;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.12s linear;
}

.ba-slider-label-before {
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--text-primary);
}

.ba-slider-label-after {
  right: 12px;
  background: var(--gradient-primary);
  color: #fff;
}

.ba-slider.is-interacting {
  cursor: ew-resize;
}

/* Prevent iOS automatic text zoom jumps and tap highlight artifacts */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input,
select,
textarea {
  font-size: 16px;
}

.faq-question:focus,
.faq-question:active,
.svc-faq-question:focus,
.svc-faq-question:active {
  outline: none;
  box-shadow: none;
}

.svc-faq-question {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.before-after .ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.before-after .ba-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: none;
  aspect-ratio: auto !important;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: var(--radius-lg);
}

.before-after .ba-card > .ba-slider,
.before-after .ba-card > .ba-flip,
.before-after .ba-card > .ba-tabs {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-primary);
}

.before-after .ba-card[data-ba-ratio="9/16"] > .ba-slider,
.before-after .ba-card[data-ba-ratio="9/16"] > .ba-flip,
.before-after .ba-card[data-ba-ratio="9/16"] > .ba-tabs { aspect-ratio: 9 / 16; }

.before-after .ba-card[data-ba-ratio="2/3"] > .ba-slider,
.before-after .ba-card[data-ba-ratio="2/3"] > .ba-flip,
.before-after .ba-card[data-ba-ratio="2/3"] > .ba-tabs { aspect-ratio: 2 / 3; }

.before-after .ba-card[data-ba-ratio="3/4"] > .ba-slider,
.before-after .ba-card[data-ba-ratio="3/4"] > .ba-flip,
.before-after .ba-card[data-ba-ratio="3/4"] > .ba-tabs { aspect-ratio: 3 / 4; }

.before-after .ba-card[data-ba-ratio="1/1"] > .ba-slider,
.before-after .ba-card[data-ba-ratio="1/1"] > .ba-flip,
.before-after .ba-card[data-ba-ratio="1/1"] > .ba-tabs { aspect-ratio: 1 / 1; }

.before-after .ba-card[data-ba-ratio="auto"] > .ba-slider,
.before-after .ba-card[data-ba-ratio="auto"] > .ba-flip,
.before-after .ba-card[data-ba-ratio="auto"] > .ba-tabs { aspect-ratio: auto; }

.ba-card-title-bottom {
  margin: 0;
  text-align: center;
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .before-after .ba-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .before-after .ba-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ba-flip {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  cursor: pointer;
}

.ba-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-flip.is-flipped .ba-flip-inner {
  transform: rotateY(180deg);
}

.ba-flip-front,
.ba-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.ba-flip-back {
  transform: rotateY(180deg);
}

.ba-flip-front img,
.ba-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-flip-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-accent);
}

.ba-tabs {
  position: relative;
  width: 100%;
  height: 100%;
}

.ba-tabs-nav {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
  z-index: 3;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
}

.ba-tabs-btn {
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.ba-tabs-btn.active {
  background: var(--gradient-primary);
  color: #fff;
}

.ba-tabs-content,
.ba-tabs-pane {
  width: 100%;
  height: 100%;
}

.ba-tabs-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.ba-tabs-pane.active {
  opacity: 1;
  pointer-events: auto;
}

.ba-tabs-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service template layout + components (svc-*) */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.svc-section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--text-primary);
}

.svc-price-banner,
.svc-description,
.svc-features,
.svc-pricing,
.svc-before-after,
.svc-video,
.svc-gallery,
.svc-faq,
.svc-cta-banner,
.svc-sidebar-nav,
.svc-sidebar-cta,
.svc-sidebar-trust {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.svc-description p + p {
  margin-top: 12px;
}

.svc-features-list,
.svc-trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.svc-features-list li,
.svc-trust-list li {
  display: flex;
  gap: 10px;
}

.svc-feature-icon,
.svc-trust-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.svc-pricing-table-wrap {
  overflow-x: auto;
}

.svc-pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.svc-pricing-table th,
.svc-pricing-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  vertical-align: top;
  text-align: left;
}

.svc-pricing-table ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-pricing-table li + li {
  margin-top: 6px;
}

.svc-ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.svc-ba-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.svc-ba-card-inner {
  position: relative;
  width: 100%;
}

.svc-ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-ba-img-after {
  position: absolute;
  inset: 0;
}

.svc-ba-img-before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  clip-path: inset(0 50% 0 0);
}

.svc-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.svc-ba-handle-line {
  width: 3px;
  height: 48%;
  background: #fff;
}

.svc-ba-handle-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.svc-ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-accent);
}

.svc-ba-label-before { left: 12px; background: rgba(255,255,255,0.92); color: var(--text-primary); }
.svc-ba-label-after { right: 12px; background: var(--gradient-accent); color: var(--primary-dark); }

.svc-ba-flip-inner {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.svc-ba-flip-face {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .35s ease, transform .35s ease;
}

.svc-ba-flip-front {
  opacity: 1;
  transform: scale(1);
}

.svc-ba-flip-inner.svc-ba-flipped .svc-ba-flip-front {
  opacity: 0;
  transform: scale(1.03);
}

.svc-ba-flip-inner.svc-ba-flipped .svc-ba-flip-back {
  opacity: 1;
  transform: scale(1);
}

.svc-ba-tabs-header {
  display: inline-flex;
  margin: 12px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.svc-ba-tab-btn {
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.svc-ba-tab-active {
  background: var(--gradient-primary);
  color: #fff;
}

.svc-ba-tabs-body {
  width: 100%;
}

.svc-ba-tabs-body-hidden {
  display: none;
}

.svc-video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.svc-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-video-direct video {
  width: 100%;
  border-radius: var(--radius-md);
}

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

.svc-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.svc-faq-item + .svc-faq-item {
  margin-top: 10px;
}

.svc-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
}

.svc-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  padding: 0 14px;
}

.svc-sidebar-title {
  font-family: var(--font-accent);
  font-size: 16px;
  margin-bottom: 10px;
}

.svc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.svc-nav-link:hover {
  background: var(--bg-secondary);
}

.svc-nav-link.active {
  background: var(--service-icon-bg);
  color: var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.svc-hero-media {
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
}

.svc-hero-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .service-detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .service-sidebar {
    position: sticky;
    top: 100px;
  }
}


/* =============================================
   SVC BEFORE/AFTER 鈥� fix de clases del template-servicio
   ============================================= */

.svc-before-after { margin-top: 48px; }

.svc-ba-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Slider */
.svc-ba-card.svc-ba-slider .svc-ba-card-inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    background: var(--bg-dark);
}

.svc-ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.svc-ba-img-before-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.svc-ba-img-after { z-index: 1; }

.svc-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: ew-resize;
}

.svc-ba-handle-line {
    flex: 1;
    width: 3px;
    background: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.svc-ba-handle-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.svc-ba-label {
    position: absolute;
    bottom: 16px;
    z-index: 6;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    transition: opacity 0.12s linear;
}

.svc-ba-label-before {
    left: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    color: var(--text-primary);
}

.svc-ba-label-after {
    right: 16px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
}

/* Flip */
.svc-ba-card.svc-ba-flip .svc-ba-flip-inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    background: var(--bg-dark);
}

.svc-ba-flip-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.svc-ba-flip-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-ba-flip-front { z-index: 1; opacity: 1; transform: scale(1); }
.svc-ba-flip-back  { z-index: 2; opacity: 0; transform: scale(1.04); }

.svc-ba-flip-inner.svc-ba-flipped .svc-ba-flip-front { opacity: 0; transform: scale(1.04); }
.svc-ba-flip-inner.svc-ba-flipped .svc-ba-flip-back  { opacity: 1; transform: scale(1); }

/* Tabs */
.svc-ba-card.svc-ba-tabs {
    max-width: 480px;
    width: 100%;
}

.svc-ba-tabs-header {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.svc-ba-tab-btn {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.svc-ba-tab-btn.svc-ba-tab-active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.svc-ba-tabs-body {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.svc-ba-tabs-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-ba-tabs-body-hidden { display: none; }

/* Layout de la p谩gina de servicio */
.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .service-detail-layout {
        grid-template-columns: 1fr 280px;
    }
}

.service-main-content { min-width: 0; }

.service-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.svc-sidebar-nav,
.svc-sidebar-cta,
.svc-sidebar-trust,
.svc-sidebar-widgets {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.svc-sidebar-title {
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.svc-nav-list { display: flex; flex-direction: column; gap: 4px; }

.svc-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.svc-nav-link:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.svc-nav-link.active { background: var(--service-icon-bg); color: var(--primary); font-weight: 700; }

.svc-trust-list { display: flex; flex-direction: column; gap: 10px; }

.svc-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.svc-trust-icon { color: var(--accent); flex-shrink: 0; }

.btn-block { display: block; width: 100%; text-align: center; }

/* Price banner */
.svc-price-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 32px;
}

.svc-price-banner-inner { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.svc-price-from {
    font-family: var(--font-accent);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.svc-price-amount {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-light);
}

.svc-price-note {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

/* Features list */
.svc-features-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.svc-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    list-style: none !important;
}

.svc-feature-icon { color: var(--accent); flex-shrink: 0; }

.svc-section-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 40px;
}

/* Pricing table */
.svc-pricing-table-wrap { overflow-x: auto; }

.svc-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.svc-pricing-table th,
.svc-pricing-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.svc-pricing-table thead th {
    background: var(--bg-secondary);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.svc-pricing-price {
    font-family: var(--font-accent);
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
    white-space: nowrap;
}

.svc-pricing-table td ul { margin: 0; padding: 0; }
.svc-pricing-table td ul li { list-style: none; padding: 2px 0; }

/* FAQ acorde贸n del servicio */
.svc-faq-accordion { display: flex; flex-direction: column; gap: 10px; }

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

.svc-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-accent);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.svc-faq-question:hover { background: var(--bg-secondary); }

.svc-faq-chevron {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.svc-faq-item .svc-faq-question.svc-faq-open .svc-faq-chevron {
    transform: rotate(180deg);
}

.svc-faq-answer {
    overflow: hidden;
    transition: max-height 0.35s ease;
    max-height: 0;
}

.svc-faq-answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* CTA banner servicio */
.svc-cta-banner {
    background: var(--service-icon-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-top: 40px;
}

.svc-cta-banner h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.svc-cta-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Gallery */
.svc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.svc-gallery-item a { display: block; border-radius: var(--radius-md); overflow: hidden; }
.svc-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.svc-gallery-item a:hover img { transform: scale(1.05); }

/* FAQ del template de servicio: reutiliza estilo de Home */
.svc-faq {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.svc-faq .faq-container {
  max-width: 100%;
}

/* Servicio: quitar caja/padding base en secciones de contenido */
.service-main-content .svc-description,
.service-main-content .svc-features,
.service-main-content .svc-pricing,
.service-main-content .svc-before-after,
.service-main-content .svc-video,
.service-main-content .svc-gallery,
.service-main-content .svc-faq,
.service-main-content .svc-cta-banner {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Mantener sidebar estable cuando cambia el alto del FAQ */
.service-detail-layout {
  align-items: start;
}

.service-sidebar {
  position: relative;
  top: auto;
  height: fit-content;
}

@media (min-width: 1024px) {
  .service-sidebar {
    position: sticky;
    top: 100px;
  }

  /* Home/services: 3 columnas en desktop */
  .services .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ Home: mantener padding interno */
.faq .faq-answer-inner {
  padding: 0 24px 20px;
}

.faq .faq-answer-inner p {
  margin: 0;
}

/* FAQ Home (markup con <div class="faq-answer"><p>...) */
.faq .faq-answer p {
  margin: 0;
  padding: 0 24px 20px;
}

/* Sidebar servicio: m谩s espacio sobre el bot贸n de ayuda */
.svc-sidebar-cta .btn-primary.btn-block {
  margin-top: 18px;
}

/* Contacto: mapa centrado y adaptable al ancho del embed */
.contact-map-shell {
  width: 100%;
  margin: 0 auto;
}

.contact-map-frame {
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map-frame iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Video embed */
.svc-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.svc-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.svc-video-direct video {
    width: 100%;
    border-radius: var(--radius-lg);
}

/* Servicio sin sidebar */
.service-detail-layout.no-sidebar {
  grid-template-columns: 1fr !important;
}

/* AI Studio tools (Home Staging) */
.ai-studio-tools {
  margin-top: 34px;
}

.ai-studio-tools__header {
  max-width: 860px;
  margin: 0 auto 24px;
}

.ai-studio-tools__header p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-studio-tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ai-studio-tools__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--bg-primary);
}

.ai-studio-tools__card--animated {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease-out, transform .28s ease-out;
}

.ai-studio-tools__card--animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-studio-tools__card-image {
  position: relative;
  aspect-ratio: 500 / 380;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  outline: none;
  background: var(--bg-tertiary);
  touch-action: pan-y;
}

.ai-studio-tools__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.ai-studio-tools__card-image.is-interacting .ai-studio-tools__card-img {
  transition: none;
}

.ai-studio-tools__card-img--before {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.ai-studio-tools__card-img--after {
  clip-path: inset(0 0 0 50%);
  z-index: 1;
}

.ai-studio-tools__card-label {
  position: absolute;
  top: 10px;
  z-index: 4;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  transition: opacity 0.12s linear;
}

.ai-studio-tools__card-label--before {
  left: 10px;
  background: rgba(255,255,255,.9);
  color: var(--text-primary);
}

.ai-studio-tools__card-label--after {
  right: 10px;
  background: var(--gradient-primary);
  color: #fff;
}

.ai-studio-tools__card-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

.ai-studio-tools__card-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 16px;
}

.ai-studio-tools__card-content {
  display: grid;
  gap: 8px;
}

.ai-studio-tools__card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-studio-tools__card-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ai-studio-tools__card-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.ai-studio-tools__card-icon-svg svg {
  width: 20px;
  height: 20px;
}

@media (hover: none) {
  .faq-question:hover,
  .svc-faq-question:hover {
    background: none !important;
  }
}

/* Customizer-injected video designs */
.v360-video-block {
  background: var(--bg-secondary);
}

.v360-video-card {
  --v360-aspect: 16/9;
  --v360-min-h: 280px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  box-shadow: var(--shadow-xl);
}

.v360-video-card video {
  width: 100%;
  height: 100%;
  min-height: var(--v360-min-h);
  aspect-ratio: var(--v360-aspect);
  object-fit: cover;
  display: block;
}

.v360-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(180deg, rgba(15,23,42,0.15), rgba(15,23,42,0.52));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.v360-video-card.is-playing .v360-video-play {
  opacity: 0;
  pointer-events: none;
}

.v360-video-play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transform: translateX(3px);
}

.v360-video-block--split .v360-video-card {
  display: grid;
  grid-template-columns: 1fr;
}

.v360-video-block--reel .v360-video-card {
  --v360-aspect: 9/16;
  max-width: 380px;
  margin: 0 auto;
}

.v360-video-block--reel .v360-video-card video {
  min-height: 0;
}

.v360-video-block--card .v360-video-card,
.v360-video-block--cinematic .v360-video-card,
.v360-video-block--split .v360-video-card {
  --v360-aspect: 16/9;
}

.v360-video-card--matterport {
  aspect-ratio: var(--v360-aspect);
  min-height: var(--v360-min-h);
}

.v360-video-card--matterport iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Rich styling inspired by original design prototypes */
.v360-video-block--cinematic {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.v360-video-block--cinematic::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201,168,76,.14) 0%, transparent 70%);
}

.v360-v1-container {
  max-width: 980px;
  margin: 0 auto;
}

.v360-v1-header {
  text-align: center;
  margin-bottom: 28px;
}

.v360-v1-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(201,168,76,.35);
  background: rgba(201,168,76,.12);
  margin-bottom: 12px;
}

.v360-v1-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.v360-v1-title {
  color: #fff;
  margin: 0 0 10px;
}

.v360-v1-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,.72);
}

.v360-v1-player {
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

.v360-v1-overlay,
.v360-v2-overlay,
.v360-va-overlay,
.v360-vb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15,23,42,.18), rgba(15,23,42,.52));
  transition: opacity .3s ease;
}

.v360-video-card.is-playing .v360-v1-overlay,
.v360-video-card.is-playing .v360-v2-overlay,
.v360-video-card.is-playing .v360-va-overlay,
.v360-video-card.is-playing .v360-vb-overlay {
  opacity: 0;
  pointer-events: none;
}

.v360-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.v360-v2-content {
  min-width: 0;
}

.v360-v2-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(26,54,93,.08), rgba(201,168,76,.1));
  color: var(--accent-dark);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.v360-v2-title {
  margin: 0 0 12px;
}

.v360-v2-desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

.v360-va-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.v360-vb-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.v360-vb-header,
.v360-va-header {
  text-align: center;
  margin-bottom: 20px;
}

.v360-vb-title,
.v360-va-title {
  margin: 0 0 8px;
}

.v360-vb-desc,
.v360-va-sub {
  color: var(--text-secondary);
}

.v360-video-block--reel {
  background: var(--bg-dark);
}

.v360-video-block--reel .v360-va-title {
  color: #fff;
}

.v360-video-block--reel .v360-va-sub {
  color: rgba(255,255,255,.68);
}

.v360-va-phone {
  border-radius: 34px;
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 11px rgba(255,255,255,.03), var(--shadow-xl);
}

.v360-vb-card {
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

.v360-video-editor-content {
  margin-top: 14px;
}

.v360-video-editor-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .v360-v2-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Shortcodes: services and reusable sections */
.v360-shortcode-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(var(--v360-cols, 3), minmax(0, 1fr));
}

.v360-shortcode-grid-outer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Keep shortcode blocks aligned with the same container width used by the page */
.entry-content .v360-shortcode-grid-outer,
.post-content .v360-shortcode-grid-outer,
.wp-block-post-content .v360-shortcode-grid-outer,
.service-detail-content .v360-shortcode-grid-outer {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.entry-content .v360-shortcode-grid,
.post-content .v360-shortcode-grid,
.wp-block-post-content .v360-shortcode-grid,
.service-detail-content .v360-shortcode-grid {
  max-width: 100%;
}

.v360-shortcode-grid--single {
  max-width: 420px;
}

.v360-shortcode-section {
  margin: 24px 0;
}

.v360-shortcode-contact-form,
.v360-shortcode-quote-form {
  width: 100%;
  max-width: 100%;
}

.v360-ai-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(var(--v360-ai-cols, 3), minmax(0, 1fr));
}

.v360-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.v360-main-content {
  width: 100%;
  max-width: var(--v360-content-max, 960px);
  margin: 0 auto;
}

/* Pages/posts without sidebar should use full container width like Home */
.v360-content-layout.no-sidebar .v360-main-content {
  max-width: none;
  margin: 0;
}

/* Hard override: avoid any inherited 800/960 wrappers in posts/pages */
section.section > .container > .v360-content-layout.no-sidebar > .service-detail-content.v360-main-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

section.section > .container > .v360-content-layout.no-sidebar > .service-detail-content.v360-main-content > .v360-shortcode-grid-outer,
section.section > .container > .v360-content-layout.no-sidebar > .service-detail-content.v360-main-content > .v360-shortcode-section:not(.v360-shortcode-cta-target) {
  width: 100% !important;
  max-width: 100% !important;
}

.v360-page-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.v360-page-sidebar.service-sidebar {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.v360-page-sidebar .widget + .widget {
  margin-top: 16px;
}

.v360-page-sidebar .widget-title {
  margin-bottom: 10px;
  font-family: var(--font-accent);
  font-size: 14px;
}

.v360-goal-cta {
  text-align: center;
}

/* Full width ONLY for:
   [v360_section id="services_page_cta"]
   [v360_promo_goal type="..."] */
.entry-content .v360-shortcode-cta-target,
.post-content .v360-shortcode-cta-target,
.wp-block-post-content .v360-shortcode-cta-target,
.service-detail-content .v360-shortcode-cta-target {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}

.entry-content .v360-shortcode-cta-target > .cta-content,
.post-content .v360-shortcode-cta-target > .cta-content,
.wp-block-post-content .v360-shortcode-cta-target > .cta-content,
.service-detail-content .v360-shortcode-cta-target > .cta-content {
  padding-left: 24px;
  padding-right: 24px;
}

/* Keep these CTA/video titles white inside page/post content wrappers */
.service-detail-content .cta-section .cta-content h2,
.service-detail-content .cta-section .cta-content p,
.entry-content .cta-section .cta-content h2,
.entry-content .cta-section .cta-content p,
.post-content .cta-section .cta-content h2,
.post-content .cta-section .cta-content p,
.wp-block-post-content .cta-section .cta-content h2,
.wp-block-post-content .cta-section .cta-content p,
.service-detail-content .v360-v1-title,
.entry-content .v360-v1-title,
.post-content .v360-v1-title,
.wp-block-post-content .v360-v1-title,
.service-detail-content .v1-title,
.entry-content .v1-title,
.post-content .v1-title,
.wp-block-post-content .v1-title {
  color: #fff !important;
}

.service-detail-content .v1-title span,
.entry-content .v1-title span,
.post-content .v1-title span,
.wp-block-post-content .v1-title span {
  color: var(--accent-light) !important;
}

/* Force legacy inline max-width wrappers to behave like normal container content */
section.section div.container div.service-detail-content[style] {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

@media (max-width: 1024px) {
  .v360-shortcode-grid-outer {
    padding: 0 18px;
  }
  .v360-shortcode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v360-ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .v360-shortcode-grid {
    grid-template-columns: 1fr;
  }
  .v360-ai-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .v360-content-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .v360-content-layout.has-sidebar .v360-main-content {
    max-width: none;
    margin: 0;
  }

  .v360-content-layout.has-sidebar .v360-page-sidebar {
    position: sticky;
    top: 96px;
  }
}

.ai-studio-tools__card-title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 700;
}

.ai-studio-tools__card-description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

@media (min-width: 768px) {
  .ai-studio-tools__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .ai-studio-tools__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}