/* ========================================
   CLÍNICA JP — STYLES
   Modern Professional Psychoanalysis Clinic
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  /* Colors */
  --primary: #1E3A5F;
  --primary-light: #2E5C8A;
  --primary-dark: #0F2440;
  --primary-50: rgba(30, 58, 95, 0.05);
  --primary-100: rgba(30, 58, 95, 0.1);
  --primary-200: rgba(30, 58, 95, 0.2);

  --secondary: #5B8DB8;
  --secondary-light: #7BADD4;
  --secondary-dark: #3A6D98;

  --accent: #A8C8E8;

  --dark: #0D1B2A;
  --dark-700: #1B2D44;
  --dark-600: #2A3F5C;
  --dark-500: #3A506B;

  --light: #F5F8FC;
  --light-200: #E8EEF5;
  --light-300: #DCE4ED;

  --white: #FFFFFF;
  --text: #2C3E50;
  --text-light: #5A6C7E;
  --text-lighter: #8E9EAE;

  --success: #1E3A5F;
  --error: #C1292E;
  --warning: #F4A261;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.2, 0.6, 0.8, 0.8);
}

/* ========== 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);
  background-color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== UTILITIES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-sm {
  padding: var(--section-padding-sm);
}

.highlight {
  color: var(--primary);
  position: relative;
}

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

.section-tag {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 36, 64, 0.25), 0 0 20px rgba(91, 141, 184, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(29, 168, 81, 0.25), 0 0 20px rgba(29, 168, 81, 0.15);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

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

/* ========== NAVBAR ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--white);
  z-index: 1001;
}

#header.scrolled .logo {
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.logo-text strong {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

#header.scrolled .nav-link {
  color: var(--text);
}

#header.scrolled .nav-link:hover,
#header.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 8px;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.2);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
}

.bar {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

#header.scrolled .bar {
  background: var(--dark);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2D44 40%, #1E3A5F 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float-particle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  50% { opacity: 1; transform: translateY(-60px) scale(1.3) rotate(180deg); }
  90% { opacity: 0.6; transform: translateY(-120px) scale(1) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 .highlight {
  color: #A8C8E8;
  font-style: italic;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Photo */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-photo-wrapper {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(30, 58, 95, 0.15);
  transition: var(--transition-slow);
  animation: photoEntrance 1.2s ease-out;
}

@keyframes photoEntrance {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(30, 58, 95, 0.05) 100%);
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: overlay;
  border-radius: var(--radius-lg);
}

.hero-photo:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 50px rgba(30, 58, 95, 0.2);
  transform: translateY(-5px);
}

.hero-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(1.05) contrast(1.1) saturate(1.15);
  transition: var(--transition-smooth);
}

.hero-photo img:hover {
  filter: brightness(1.08) contrast(1.12) saturate(1.2);
}

.hero-photo-decoration {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(91, 141, 184, 0.4);
  border-radius: var(--radius-lg);
  z-index: -1;
  transition: var(--transition-slow);
}

.hero-photo:hover ~ .hero-photo-decoration {
  border-color: rgba(91, 141, 184, 0.6);
}

.hero-photo-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-photo-badge .badge-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.hero-photo-badge .badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.hero-photo-badge .badge-text span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero-highlights {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8C8E8;
  font-size: 0.95rem;
}

.hero-stat-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
  font-family: var(--font-heading);
}

.hero-stat-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Hero Scroll */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--white);
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(15px); opacity: 0.7; }
}

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}

.about-img-placeholder i {
  font-size: 4rem;
  opacity: 0.5;
}

.about-img-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary-200);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-experience {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

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

.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.about-feature h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== STATS SECTION ========== */
.stats {
  background: var(--primary);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='m0 40 40-40h-40z'/%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(30, 58, 95, 0.15);
  border-color: var(--primary-100);
}

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

.service-card.featured {
  background: var(--primary);
  color: var(--white);
}

.service-card.featured::before {
  background: var(--accent);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card.featured h3 {
  color: var(--white);
}

.service-card > p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-card.featured > p {
  color: rgba(255, 255, 255, 0.8);
}

.service-list {
  margin-bottom: 20px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.service-card.featured .service-list li {
  color: rgba(255, 255, 255, 0.8);
}

.service-list li i {
  color: var(--primary);
  font-size: 0.8rem;
}

.service-card.featured .service-list li i {
  color: var(--accent);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card.featured .service-link {
  color: var(--accent);
}

.service-link:hover {
  gap: 14px;
}

/* ========== APPROACH / TIMELINE ========== */
.approach {
  background: var(--light);
}

.approach-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-200);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--light);
}

.timeline-content {
  width: calc(50% - 50px);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.timeline-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== BENEFITS SECTION ========== */
.benefits {
  background: var(--white);
}

.benefits-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.benefits-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.benefits-content > p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-check {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2px;
}

.benefit-item h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Benefits Visual */
.benefits-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-card-stack {
  position: relative;
  width: 280px;
  height: 400px;
}

.b-card {
  position: absolute;
  width: 220px;
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

.b-card:hover {
  transform: scale(1.05) !important;
}

.b-card i {
  font-size: 1.5rem;
}

.b-card-1 {
  top: 0;
  left: 0;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary-100);
  animation: float-card 6s ease-in-out infinite;
}

.b-card-2 {
  top: 80px;
  right: 0;
  background: var(--primary);
  color: var(--white);
  animation: float-card 6s ease-in-out 1.5s infinite;
}

.b-card-3 {
  top: 180px;
  left: 10px;
  background: var(--secondary);
  color: var(--white);
  animation: float-card 6s ease-in-out 3s infinite;
}

.b-card-4 {
  bottom: 20px;
  right: 10px;
  background: var(--accent);
  color: var(--dark);
  animation: float-card 6s ease-in-out 4.5s infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--light);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* Testimonial card inner elements styled below */

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

.testimonial-card > * {
  background: var(--white);
}

/* Fix: wrap inner content */
.testimonial-card {
  flex: 0 0 33.333%;
  padding: 0 12px;
}

.testimonial-card-inner {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
}

/* Let's use a simpler approach since we can't add inner div */
.testimonial-card {
  display: block;
  padding: 12px;
}

.testimonial-card .testimonial-stars,
.testimonial-card .testimonial-text,
.testimonial-card .testimonial-author {
  background: none;
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  gap: 3px;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  flex-grow: 1;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--text-lighter);
}

/* Override: wrap the testimonial card content in bg */
.testimonial-card {
  flex: 0 0 33.333%;
  padding: 12px;
  background: none !important;
}

.testimonial-card .testimonial-stars {
  background: var(--white);
  padding: 32px 32px 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.testimonial-card .testimonial-text {
  background: var(--white);
  padding: 16px 32px 0;
  line-height: 1.8;
}

.testimonial-card:hover .testimonial-stars,
.testimonial-card:hover .testimonial-text,
.testimonial-card:hover .testimonial-author {
  box-shadow: 0 15px 40px rgba(30, 58, 95, 0.08);
  transition: box-shadow 0.4s ease;
}

.testimonial-card .testimonial-author {
  background: var(--white);
  padding: 0 32px 32px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-200);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

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

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-200);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 10px;
}

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

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

.faq-item {
  border: 1px solid var(--light-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--primary-200);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  transition: var(--transition-smooth);
  background: none;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
  min-width: 20px;
  text-align: center;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== CTA SECTION ========== */
.cta {
  background: linear-gradient(135deg, #0D1B2A 0%, #1E3A5F 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

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

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

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

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

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

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

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-card h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-social h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 12px;
  margin-top: 8px;
}

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

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--light-300);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-form > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.form-group {
  margin-bottom: 0;
}

.form-group:not(.form-row .form-group) {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--light-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light);
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-100), 0 4px 12px rgba(30, 58, 95, 0.1);
  background: var(--white);
  transform: translateY(-1px);
}

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

.form-group select {
  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 fill='%236B6B6B' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(45, 106, 79, 0.1);
  color: var(--success);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(193, 41, 46, 0.1);
  color: var(--error);
  border: 1px solid rgba(193, 41, 46, 0.2);
}

/* Map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--light-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-lighter);
  border-radius: var(--radius-lg);
}

.map-placeholder i {
  font-size: 2.5rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

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

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-contact p i {
  color: var(--primary-light);
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.85rem;
}

.footer-bottom i {
  color: var(--error);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  cursor: pointer;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

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

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin: 0 auto 36px;
  }

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

  .hero-visual {
    max-width: 380px;
    margin: 0 auto;
  }

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

  .hero-photo img {
    height: 400px;
  }

  .hero-photo-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -24px;
    white-space: nowrap;
  }

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

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .timeline-line {
    left: 30px;
  }

  .timeline-number {
    left: 30px;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 70px;
  }

  .timeline-content {
    width: 100%;
  }

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

  .benefits-visual {
    display: none;
  }

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

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

  .testimonial-card {
    flex: 0 0 50% !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
    --section-padding-sm: 40px 0;
  }

  /* Navbar Mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }

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

  .nav-link {
    color: var(--text);
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 16px;
    padding: 14px 24px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar {
    background: var(--dark) !important;
  }

  /* Mobile nav overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero-photo img {
    height: 350px;
  }

  .hero-photo-badge {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .hero-photo-decoration {
    display: none;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-number {
    font-size: 2.2rem;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group:not(.form-row .form-group) {
    margin-bottom: 16px;
  }

  .form-row .form-group {
    margin-bottom: 16px;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Whatsapp + Back to top */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 16px;
  }

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

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

  .about-experience {
    left: 10px;
    padding: 16px;
  }

  .exp-number {
    font-size: 2rem;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

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

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

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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