/*
Theme Name: Carvel Consulting
Theme URI: https://carvelconsultingllc.com
Author: Carvel Consulting LLC
Author URI: https://carvelconsultingllc.com
Description: A professional business consulting theme for entrepreneurs looking to establish companies in the USA. Features a premium corporate design with Deep Navy, Platinum and Crimson accents.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carvel-consulting
Tags: business, consulting, portfolio, one-column, two-columns, custom-colors, custom-menu, editor-style, featured-images, full-width-template, sticky-post, theme-options
*/

/* ============================================================
   CARVEL CONSULTING LLC — STYLES
   Premium Corporate: Deep Navy + Crimson Accent + Platinum
   Transmite seriedad, confianza y excelencia profesional
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* === BRAND ACCENT — Crimson (usar con estrategia) === */
  --red: #DC143C;
  --red-light: #E8274F;
  --red-dark: #B01030;
  --red-glow: rgba(220, 20, 60, 0.15);

  /* === DARK FOUNDATIONS — Navy Profundo === */
  --navy: #0A1628;
  --navy-mid: #0F1E35;
  --navy-surface: #152340;
  --navy-border: rgba(255, 255, 255, 0.06);

  /* === CHARCOAL === */
  --charcoal: #1C2535;
  --charcoal-light: #243044;

  /* === PLATINUM / GOLD === */
  --platinum: #C8D8E8;
  --gold: #C9A84C;
  --gold-light: #D4B86A;

  /* === LIGHT SURFACES === */
  --cream: #F7F5F2;
  --cream-dark: #EDE9E3;
  --white: #FFFFFF;

  /* === TEXT HIERARCHY === */
  --text-primary: #0A1628;
  --text-secondary: #3D5166;
  --text-muted: #6B7A8D;
  --text-on-dark: #E8EDF2;
  --text-on-dark-muted: #8CA0B5;

  /* === LEGACY ALIASES === */
  --accent: #1A3A5C;
  --accent-light: #1F4570;
  --accent-dark: #0A1628;
  --gray-dark: #2D3F52;
  --gray: #6B7A8D;
  --gray-light: #8CA0B5;
  --black: #060E19;

  /* Fonts */
  --font-headline: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 160px);
  --container-max: 1280px;
  --container-padding: clamp(20px, 4vw, 60px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.8s var(--ease-out), color 0.8s var(--ease-out);
  /* Safe area support for iPhone with notch */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

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

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

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section--dark {
  background-color: var(--navy);
  color: var(--text-on-dark);
}

.section--cream {
  background-color: var(--cream);
  color: var(--text-primary);
}

.section-label {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.85;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title__solid,
.section-title__outline {
  display: block;
}

.section-title__solid {
  position: relative;
  z-index: 2;
}

.section-title__outline {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  -webkit-text-stroke: 1.5px currentColor;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
  pointer-events: none;
}

.section--dark .section-title__outline {
  -webkit-text-stroke-color: var(--accent);
}

.section--cream .section-title__outline {
  -webkit-text-stroke-color: var(--red);
}

/* ---------- ACCESSIBILITY ---------- */
*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.nav__cta:focus-visible,
.hero__cta:focus-visible,
.contact__submit:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(220, 20, 60, 0.2);
}

/* Selection color */
::selection {
  background: var(--red);
  color: var(--white);
}

::-moz-selection {
  background: var(--red);
  color: var(--white);
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--container-padding);
  transition: background-color 0.4s, backdrop-filter 0.4s;
  border-top: 3px solid var(--red);
}

.nav--scrolled {
  background-color: var(--white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav--scrolled .nav__logo-img {
  filter: none;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav__logo-img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  padding: 4px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-toggle__option {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
}

.lang-toggle__option:hover {
  color: var(--white);
}

.lang-toggle__option--active {
  color: var(--black);
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.lang-toggle__option--active:hover {
  color: var(--black);
}

.lang-toggle__divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 300;
}

.nav__cta {
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 10px 24px;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
}

.nav__cta:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-headline);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav--scrolled .nav__link {
  color: var(--gray);
}

.nav--scrolled .nav__link:hover {
  color: var(--red);
}

.nav--scrolled .nav__link::after {
  background: var(--red);
}

/* Burger Menu */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 110;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav--scrolled .nav__burger span {
  background: var(--black);
}

.nav--scrolled .lang-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.nav--scrolled .lang-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.nav--scrolled .lang-toggle__option {
  color: var(--gray);
}

.nav--scrolled .lang-toggle__option:hover {
  color: var(--red);
}

.nav--scrolled .lang-toggle__option--active {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.nav--scrolled .lang-toggle__option--active:hover {
  color: var(--white);
}

.nav--scrolled .lang-toggle__divider {
  color: rgba(0, 0, 0, 0.2);
}

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

.nav__burger--active span:nth-child(2) {
  opacity: 0;
}

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

/* Nav overlay for mobile */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  touch-action: pan-y pinch-zoom;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav__overlay--active {
  display: flex;
}

.nav__overlay .nav__link {
  font-size: 24px;
  letter-spacing: 0.15em;
  color: var(--text-on-dark);
}

.nav__overlay .nav__link:hover {
  color: var(--red);
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__cta {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

/* iOS Safari 100vh fix */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}

.hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(100%) brightness(1.1);
  transition: filter 0.6s ease, opacity 0.3s ease;
}

.hero__bg-image:hover img,
.hero__bg-image.active img {
  filter: grayscale(0%) brightness(1);
}

.hero__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero__bg-image:hover::after,
.hero__bg-image.active::after {
  opacity: 0.3;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  max-width: 100vw;
  max-height: 100vh;
  pointer-events: none;
}

.hero__shape--1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--red), transparent 70%);
  top: -200px;
  right: -200px;
}

.hero__shape--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red), transparent 70%);
  bottom: -100px;
  left: -150px;
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--platinum), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.02;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-padding);
  max-width: 1000px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--red);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-headline);
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.85;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 4px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--solid {
  position: relative;
  z-index: 2;
  color: var(--text-on-dark);
}

.hero__title-line--outline {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  -webkit-text-stroke: 2px var(--red);
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
  pointer-events: none;
  white-space: nowrap;
}

.hero__description {
  font-family: var(--font-accent);
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 40px auto 48px;
  line-height: 1.6;
}

.hero__cta {
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 16px 48px;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.hero__cta::after {
  content: ' \2192';
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.hero__cta:hover::after {
  transform: translateX(4px);
}

.hero__cta:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(220, 20, 60, 0.4);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero__scroll-indicator span {
  font-family: var(--font-headline);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-on-dark-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--section-padding) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__left {
  position: relative;
}

.about__left::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 60px;
  height: 60px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  opacity: 0.3;
}

.about__text {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- FLOATING STATS ---------- */
.floating-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-top: 60px;
  padding: 40px 0;
  width: 100%;
  position: relative;
}

.floating-stat {
  text-align: center;
  position: relative;
  z-index: 2;
}

.floating-stat__particles {
  position: absolute;
  inset: -50px;
  pointer-events: none;
  z-index: -1;
}

.floating-stat__number {
  font-family: var(--font-headline);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  position: relative;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}

.floating-stat__number::after {
  content: attr(data-suffix);
  font-size: 0.4em;
  vertical-align: super;
  margin-left: 4px;
  opacity: 0.8;
}

.floating-stat__label {
  font-family: var(--font-headline);
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-top: 16px;
}

/* Floating particles */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 4s ease-in-out infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1);
  }
  80% {
    opacity: 0.6;
    transform: translateY(-80px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0);
  }
}

/* Glow rings */
.floating-stat::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: glowRing 3s ease-in-out infinite;
}

@keyframes glowRing {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .floating-stats {
    flex-direction: column;
    gap: 40px;
  }
}

/* ---------- SERVICES ---------- */
.services {
  padding: var(--section-padding) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
  perspective: 1200px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(32px, 3vw, 48px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.5s var(--ease-out);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--navy);
}

.service-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- PROCESS TIMELINE ---------- */
.process {
  padding: var(--section-padding) 0;
}

.timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 60px;
}

.timeline__line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(44, 62, 80, 0.15);
}

.timeline__item {
  position: relative;
  padding-bottom: 60px;
  padding-left: 40px;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--accent);
  z-index: 2;
}

.timeline__item::before {
  content: attr(data-step);
  position: absolute;
  left: -80px;
  top: 0;
  font-family: var(--font-headline);
  font-size: 28px;
  color: var(--accent);
  opacity: 0.3;
}

.timeline__title {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--text-on-dark);
}

.timeline__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 500px;
}

/* ---------- WHY USA ---------- */
.why-usa {
  padding: var(--section-padding) 0;
}

.why-usa__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.why-card {
  padding: clamp(32px, 3vw, 48px);
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 12px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
  position: relative;
}

.why-card:hover {
  border-color: var(--red);
  border-left: 4px solid var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(220, 20, 60, 0.08);
}

.why-card__number {
  font-family: var(--font-headline);
  font-size: clamp(48px, 6vw, 80px);
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 8px;
}

.why-card__title {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--navy);
}

.why-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.marquee {
  margin-top: 60px;
  overflow: hidden;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--navy), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--navy), transparent);
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
}

.testimonial-card {
  flex-shrink: 0;
  width: 400px;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: clamp(28px, 2.5vw, 40px);
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testimonial-card__text {
  font-family: var(--font-accent);
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: var(--cream-dark);
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--text-on-dark);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--red);
  margin-top: 2px;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: var(--section-padding) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  margin-top: 60px;
  align-items: start;
}

.contact__text {
  font-family: var(--font-accent);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

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

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.contact__detail svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid rgba(10, 22, 40, 0.15);
  border-radius: 8px;
  font-size: 15px;
  color: var(--red);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a8a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact__submit {
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 16px 48px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  align-self: flex-start;
}

.contact__submit:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 20, 60, 0.3);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  color: var(--cream);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: 28px;
  letter-spacing: 0.05em;
}

.footer__logo-img,
.footer__logo .custom-logo-link img {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__logo-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--red);
}

.footer__tagline {
  font-size: 15px;
  color: var(--gray);
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.6;
}

.footer__links h4 {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--red);
}

.footer__links a {
  display: block;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--platinum);
}

.footer__bottom {
  padding-top: 32px;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--gray);
}

/* ---------- SECTION DIVIDERS ---------- */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  z-index: 5;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .why-usa__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .testimonial-card {
    width: 340px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-left: calc(var(--container-padding) + env(safe-area-inset-left));
    padding-right: calc(var(--container-padding) + env(safe-area-inset-right));
  }

  .nav__cta {
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero__title {
    font-size: clamp(48px, 14vw, 100px);
  }

  /* Hero shapes reducidos para móvil */
  .hero__shape--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
  }

  .hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -75px;
  }

  .hero__shape--3 {
    width: 150px;
    height: 150px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline__item::before {
    left: -30px;
    font-size: 20px;
  }

  .timeline__line {
    left: 10px;
  }

  .timeline__marker {
    left: -20px;
    width: 12px;
    height: 12px;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimonial-card {
    width: 300px;
  }

  .marquee {
    touch-action: pan-x;
  }
}

@media (max-width: 480px) {
  .nav__actions {
    gap: 12px;
  }

  .lang-toggle {
    padding: 4px 8px;
  }

  .hero__title {
    font-size: clamp(36px, 14vw, 64px);
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .section-title {
    font-size: clamp(32px, 10vw, 60px);
    word-wrap: break-word;
  }

  /* Shapes aún más reducidos para móvil pequeño */
  .hero__shape--1 {
    width: 280px;
    height: 280px;
    top: -70px;
    right: -70px;
  }

  .hero__shape--2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -50px;
  }

  .hero__shape--3 {
    width: 100px;
    height: 100px;
  }

  .hero__description {
    font-size: 14px;
    padding: 0 10px;
  }

  .nav__logo-img {
    height: 48px;
  }

  .testimonial-card {
    width: 280px;
  }

  .footer__logo-img,
  .footer__logo .custom-logo-link img {
    height: 60px;
  }
}

/* ---------- ANIMATIONS (initial states, animated by GSAP) ---------- */
.hero__subtitle,
.hero__title,
.hero__description,
.hero__cta,
.hero__scroll-indicator {
  opacity: 0;
}

.about__left,
.about__right,
.about__text,
.about__stats {
  opacity: 0;
}

.service-card {
  will-change: transform, opacity;
}

.service-card.gsap-animate {
  opacity: 0;
  transform: translateY(40px);
}

.timeline__item {
  will-change: transform, opacity;
}

.timeline__item.gsap-animate {
  opacity: 0;
}

.why-card {
  will-change: transform, opacity;
}

.why-card.gsap-animate {
  opacity: 0;
  transform: translateY(30px);
}

.contact__info,
.contact__form {
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- ENHANCED VISUAL EFFECTS ---------- */
.hero__bg-shapes {
  will-change: transform;
}

.hero__content {
  will-change: transform, opacity;
}

/* Smooth section transitions */
section {
  position: relative;
  will-change: background-color;
}

/* Glowing accent effect on crimson elements */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(220, 20, 60, 0.1); }
  50% { box-shadow: 0 0 40px rgba(220, 20, 60, 0.2); }
}

.service-card:hover {
  animation: glow 2s ease-in-out infinite;
}

/* Gradient overlays for depth */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--navy), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

/* ---------- SCROLL PROGRESS ---------- */
div[style*="position:fixed"][style*="height:3px"] {
  transition: width 0.15s ease-out;
}

/* ---------- LOADING ANIMATION ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__logo {
  width: 200px;
  height: auto;
  filter: invert(1);
  animation: loaderPulse 2.4s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- CUSTOM CURSOR GLOW ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---------- SMOOTH BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 20px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 20, 60, 0.4);
}

/* ---------- IMPROVED FORM VALIDATION ---------- */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: var(--accent);
}

/* ---------- SUBTLE NOISE TEXTURE ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- GLASS MORPHISM NAV (SCROLLED) ---------- */
.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* ---------- TRUST REASONS ---------- */
.about__trust-reasons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 40px;
  border-top: 1px solid rgba(44, 62, 80, 0.2);
  flex-wrap: wrap;
}

.trust-reason {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.trust-reason__icon {
  color: #22c55e;
  font-size: 1.25rem;
}

.trust-reason__text {
  color: var(--cream);
}

@media (max-width: 768px) {
  .about__trust-reasons {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
