/* style.css - Acompañar: Cuidado, Contención, Salud */

/* ==========================================
   IMPORTS & CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors (Light Theme Default) */
  --primary: #0a2d54;           /* Deep Navy Blue from logo */
  --primary-light: #164273;     /* Brighter Navy Blue */
  --secondary: #00a2e8;         /* Sky Blue from logo */
  --secondary-light: #e6f7ff;   /* Soft blue tint background */
  --accent: #059669;            /* Success Green */
  --accent-light: #ecfdf5;
  --bg-light: #f5f9fc;          /* Light slate blue background */
  --bg-card: #ffffff;           /* Card white */
  --text-main: #1e293b;         /* Dark gray for text */
  --text-muted: #64748b;        /* Cool gray for secondary text */
  --text-white: #ffffff;
  --border-color: #e2e8f0;      /* Border gray */
  --header-bg: rgba(255, 255, 255, 0.85);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 45, 84, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 45, 84, 0.08);
  --shadow-lg: 0 16px 36px rgba(10, 45, 84, 0.12);
  --shadow-glow: 0 8px 32px rgba(0, 162, 232, 0.15);

  /* Layout and Spacing */
  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Slider Percentages (Updated via JS) */
  --range-pct-hours: 30%;
  --range-pct-days: 66%;
}

/* ==========================================
   DARK THEME VARIABLES
   ========================================== */
[data-theme="dark"] {
  --primary: #38bdf8;           /* Light Sky Blue for headings in dark mode */
  --primary-light: #7dd3fc;
  --secondary: #00a2e8;
  --secondary-light: rgba(0, 162, 232, 0.15);
  --bg-light: #0b1329;          /* Deep dark blue */
  --bg-card: #1c2541;           /* Navy dark blue */
  --text-main: #f1f5f9;         /* Off-white text */
  --text-muted: #94a3b8;        /* Soft gray text */
  --border-color: #334155;      /* Dark slate border */
  --header-bg: rgba(11, 19, 41, 0.85);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  transition: color var(--transition-normal);
}

/* Specific Dark Mode heading overrides */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4 {
  color: #f1f5f9;
}

[data-theme="dark"] h1 span,
[data-theme="dark"] h2 span,
[data-theme="dark"] .logo-text span.brand {
  color: var(--secondary) !important;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

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

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

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

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

/* Section Header */
.section-header {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.section-header .badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background-color: #0a2d54;
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(10, 45, 84, 0.15);
}

[data-theme="dark"] .btn-primary {
  background-color: var(--secondary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 45, 84, 0.25);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-secondary:hover {
  background-color: #008ece;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 162, 232, 0.25);
}

.btn-outline {
  border: 2px solid #0a2d54;
  color: #0a2d54;
}

[data-theme="dark"] .btn-outline {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: #0a2d54;
  color: var(--text-white);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: var(--secondary);
  color: var(--text-white);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

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

.logo-img {
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
}

.logo-text span.brand {
  color: #0a2d54;
  line-height: 1;
  transition: color var(--transition-normal);
}

.logo-text span.slogan {
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  font-size: 1.25rem;
  color: var(--text-main);
  background-color: var(--secondary-light);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--secondary);
  color: var(--text-white);
  transform: rotate(15deg);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  padding: 6rem 0 5rem 0;
  background: radial-gradient(circle at 80% 20%, var(--secondary-light) 0%, var(--bg-light) 60%);
  overflow: hidden;
  transition: background var(--transition-normal);
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(0, 162, 232, 0.05);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 550px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-tag i {
  color: var(--secondary);
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: #0a2d54;
}

.hero h1 span {
  color: var(--secondary);
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero-feat-item i {
  color: var(--secondary);
  font-size: 1.1rem;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-card);
  transform: rotate(1deg);
  transition: var(--transition-normal);
}

.hero-img-wrapper:hover {
  transform: rotate(0) scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background-color: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-color);
  animation: float 4s ease-in-out infinite alternate;
}

.hero-floating-card .avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-floating-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-main);
}

.hero-floating-card-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(1deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}

/* ==========================================
   VALUES SECTION (PILARES)
   ========================================== */
.values-strip {
  background-color: #0a2d54;
  color: var(--text-white);
  padding: 2.5rem 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .values-strip {
  background-color: #101a35;
}

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

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.value-info h3 {
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.value-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ==========================================
   SERVICES SECTION (COMPACT CARDS)
   ========================================== */
.services {
  background-color: var(--bg-light);
}

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

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 162, 232, 0.4);
}

.service-img-container {
  height: 14rem;
  overflow: hidden;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #0a2d54;
  color: var(--text-white);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .service-badge {
  background-color: var(--secondary);
}

.service-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-details {
  list-style: none;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.service-details li {
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-details li i {
  color: var(--secondary);
  font-size: 0.9rem;
}

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

.service-footer .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.service-tagline {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

/* ==========================================
   INTERACTIVE CALCULATOR (ARMÁ TU PLAN)
   ========================================== */
.calculator-section {
  background-color: var(--bg-card);
  position: relative;
}

.calculator-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  margin-top: 1rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.calc-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-group-title i {
  color: var(--secondary);
}

/* Option Selectors (Radio Tiles) */
.service-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.service-option-tile {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-option-tile:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.service-option-tile input {
  display: none;
}

.service-option-tile.active {
  border-color: var(--secondary);
  background-color: var(--secondary-light);
}

.service-option-tile.active .tile-icon {
  color: var(--secondary);
}

.tile-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tile-info span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Sliders with Dynamic Highlight tracks */
.slider-container {
  background-color: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-val {
  background-color: #0a2d54;
  color: var(--text-white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

[data-theme="dark"] .slider-val {
  background-color: var(--secondary);
}

.custom-range {
  width: 100%;
  height: 6px;
  outline: none;
  border-radius: 3px;
  -webkit-appearance: none;
}

/* Dynamic slider background tracking */
#calcHours {
  background: linear-gradient(to right, var(--secondary) 0%, var(--secondary) var(--range-pct-hours), var(--border-color) var(--range-pct-hours), var(--border-color) 100%);
}

#calcDays {
  background: linear-gradient(to right, var(--secondary) 0%, var(--secondary) var(--range-pct-days), var(--border-color) var(--range-pct-days), var(--border-color) 100%);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-main);
  border: 3px solid var(--secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Result Card */
.calc-result-box {
  background-color: #0a2d54;
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  height: 100%;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .calc-result-box {
  background-color: #1c2541;
  border: 1px solid var(--border-color);
}

.calc-result-box::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.calc-result-header h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.calc-result-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.calc-result-plan-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
  margin: 1.25rem 0;
  letter-spacing: -0.5px;
}

.calc-result-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  min-height: 4.5rem;
}

.calc-result-details {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  width: 100%;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.calc-detail-item {
  font-size: 0.8rem;
  text-align: left;
}

.calc-detail-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
}

.calc-result-box .btn {
  width: 100%;
}

/* ==========================================
   WHY CHOOSE US (NOSOTROS & CONFIANZA)
   ========================================== */
.why-us {
  background-color: var(--bg-light);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.why-us-media {
  position: relative;
}

.why-us-img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.why-us-experience-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background-color: var(--secondary);
  color: var(--text-white);
  padding: 1.25rem;
  border-radius: 50%;
  width: 6.5rem;
  height: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
}

.why-us-experience-badge span.num {
  font-size: 1.8rem;
  font-weight: 800;
}

.why-us-experience-badge span.lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-us-item {
  background-color: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-fast);
}

.why-us-item:hover {
  transform: translateX(5px);
  border-color: var(--secondary);
}

.why-us-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.why-us-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.why-us-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   TESTIMONIALS (CAROUSEL)
   ========================================== */
.testimonials {
  background-color: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  font-size: 20rem;
  font-family: 'Outfit', sans-serif;
  color: rgba(0, 162, 232, 0.04);
  top: -5rem;
  left: 2rem;
  line-height: 1;
}

.carousel-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-normal);
}

.carousel-slide {
  min-width: 100%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stars {
  color: #ffb703;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.testimonial-quote {
  font-size: 1.15rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #0a2d54;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg-card);
}

[data-theme="dark"] .author-avatar {
  background-color: var(--secondary);
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-relation {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--secondary);
  color: var(--text-white);
  border-color: var(--secondary);
}

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--secondary);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================
   FAQ SECTION (ACORDEÓN)
   ========================================== */
.faq {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(0, 162, 232, 0.4);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
}

.faq-question i {
  color: var(--secondary);
  font-size: 1.1rem;
  transition: transform var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background-color: var(--bg-light);
  border-top: 0 solid var(--border-color);
}

.faq-answer-inner {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Active State */
.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

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

.faq-item.active .faq-answer {
  border-top-width: 1px;
}

/* ==========================================
   CONTACT SECTION & FORM FEEDBACK
   ========================================== */
.contact {
  background-color: var(--bg-card);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background-color: #0a2d54;
  color: var(--text-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: 100%;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-info-card {
  background-color: #1c2541;
  border: 1px solid var(--border-color);
}

.contact-info-card::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  bottom: -40px;
  left: -40px;
}

.contact-info-card h3 {
  color: var(--text-white);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 2.5rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-row i {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-row-text h4 {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail-row-text p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 162, 232, 0.15);
}

/* Validation Highlights */
.form-control.valid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

.contact-form .btn {
  width: 100%;
}

/* Success Overlay */
.form-success-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  background-color: var(--bg-card);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: #051a33;
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .footer {
  background-color: #030a1c;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text span.brand {
  color: var(--text-white) !important;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
}

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

.footer-newsletter p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.75rem 1rem;
  color: var(--text-white);
  font-size: 0.85rem;
  flex-grow: 1;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  background-color: var(--secondary);
  color: var(--text-white);
  padding: 0 1.25rem;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: #008ece;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================
   FLOATING ELEMENTS (WHATSAPP FLOATER)
   ========================================== */
.whatsapp-floater {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #25d366;
  color: var(--text-white);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 99;
  transition: var(--transition-normal);
}

.whatsapp-floater:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-floater::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================
   RESPONSIVE DESIGN (DESKTOP & MOBILE OVERRIDES)
   ========================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-floating-card {
    display: none;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .why-us-media {
    max-width: 450px;
    margin: 0 auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* MOBILE OPTIMIZATION - Edge-to-edge compact styling */
  .container {
    padding: 0 0.75rem; /* ~12px margins */
  }
  
  .section-padding {
    padding: 3rem 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    border-radius: var(--radius-sm);
  }
  
  .service-img-container {
    height: 11rem;
  }
  
  .service-body {
    padding: 1rem;
  }

  .service-details {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  /* Navigation Mobile drawer */
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 4.5rem);
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: left var(--transition-normal);
    z-index: 99;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    display: none;
  }

  /* Hero Mobile styling */
  .hero {
    padding: 4rem 0 3rem 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-tag {
    margin: 0 auto 1.25rem auto;
  }

  .hero h1 {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-img-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Values Strip Mobile */
  .values-strip {
    padding: 2rem 0;
  }

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

  .value-item {
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Calculator Mobile */
  .calculator-card {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .service-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .service-option-tile {
    padding: 0.75rem;
  }

  .calc-result-box {
    padding: 1.5rem 1rem;
  }

  /* Why Us Mobile */
  .why-us-experience-badge {
    width: 5.5rem;
    height: 5.5rem;
    top: -1rem;
    right: -1rem;
  }
  
  .why-us-experience-badge span.num {
    font-size: 1.4rem;
  }

  .why-us-item {
    padding: 1rem;
  }

  /* Carousel Mobile */
  .carousel-slide {
    padding: 2rem 1.25rem;
  }

  .testimonial-quote {
    font-size: 0.95rem;
  }

  .carousel-btn {
    display: none;
  }

  /* Contact Form Mobile */
  .contact-form {
    padding: 1.5rem 1rem;
  }

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

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

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
}
