/*
Theme Name: Color by Jesús
Theme URI: https://colorbyjesus.com
Author: Santiago / GALTON
Description: Tema profesional para Color by Jesús — Colorimetría Capilar Especializada para Latinas. Diseño Editorial Light Cream, 100% responsive con selector de idioma ES/EN y botón flotante de WhatsApp.
Version: 1.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: color-by-jesus
Tags: business, portfolio, custom-colors, responsive-layout
*/

/* ============================================================
   Editorial Light Cream — Color by Jesús
   Colorimetría Capilar Especializada para Latinas
   ============================================================ */

/* === CSS VARIABLES (THEME) === */
:root {
  --bg: #f4efe6;           /* Warm cream background */
  --bg-2: #e8ddf0;         /* Sand */
  --paper: #ffffff;
  --ink: #1a1a1a;          /* Deep brown text */
  --ink-soft: #2a2a2a;
  --ink-mute: #6b6b6b;     /* Metadata */
  --accent: #b85c3a;       /* Terracotta warmth */
  --accent-2: #4a5d3a;     /* Moss secondary */
  --line: rgba(26, 26, 26, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  text-align: center;
}

h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; }

em { font-style: italic; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-in-out);
}

a:hover { color: var(--accent-2); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

/* ========== SPLASH (Safety Net) ========== */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
  animation: splashSafety 0.01s 4.5s forwards;
}

@keyframes splashSafety {
  to {
    opacity: 0;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
  }
}

.splash-logo {
  width: 80px;
  height: auto;
  animation: splashFade 1.2s var(--ease-in-out) forwards;
}

@keyframes splashFade {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; }
  100% { opacity: 0.6; transform: scale(1); }
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  transition: all 0.4s var(--ease-in-out);
}

.nav.is-scrolled {
  background: rgba(244, 239, 230, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.nav-logo {
  width: 80px;
  height: auto;
}

.nav-name {
  display: none;
}

/* MENÚ INTERACTIVO - CURSOR ANIMADO */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  padding: 0.25rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-menu li {
  position: relative;
  z-index: 10;
  display: block;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
}

.nav-menu li a {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  mix-blend-mode: difference;
  transition: mix-blend-mode 0.3s ease;
  padding: 0.375rem 0.75rem;
}

.nav-menu li:hover a {
  color: white;
  mix-blend-mode: normal;
}

.nav-cursor {
  position: absolute;
  z-index: 0;
  height: 1.75rem;
  background: var(--accent);
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  left: 0.25rem;
  top: 0.25rem;
  width: 0;
}

/* BOTÓN HAMBURGUESA */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 767px) {
  .nav {
    padding: 0.75rem 1rem;
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
    align-items: center;
  }

  .nav-brand {
    display: flex;
    justify-content: center;
  }

  .nav-logo {
    width: 90px;
  }

  .nav-hamburger {
    display: flex;
    order: -1;
  }

  .nav-lang {
    display: flex;
    gap: 0.5rem;
    order: 1;
  }

  .lang-btn {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
  }

  .lang-btn:hover {
    background: transparent;
    color: var(--accent);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem 1rem;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    color: var(--ink);
  }

  .nav-cursor {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav {
    padding: 1rem 2rem;
    grid-template-columns: auto 1fr auto;
    justify-content: unset;
  }

  .nav-hamburger {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    position: relative !important;
    top: unset !important;
    left: unset !important;
    right: unset !important;
    flex-direction: row !important;
    width: auto !important;
    padding: 0.25rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    z-index: unset !important;
  }

  .nav-menu li {
    padding: 0.375rem 0.75rem;
    border-bottom: none !important;
    white-space: normal;
  }

  .nav-menu li a {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    letter-spacing: 0.5px;
  }

  .nav-cursor {
    display: block !important;
    height: 3rem;
  }
}

@media (min-width: 768px) {
  .nav-menu li a {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .nav-cursor {
    height: 3rem;
  }
}

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(244, 239, 230, 0.98);
  padding: 0;
  border-bottom: 1px solid var(--line);
  z-index: 999;
}

.nav-menu.is-open li {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.nav-menu.is-open li:last-child {
  border-bottom: none;
}

/* Selectores de idioma */
.nav-lang {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 100;
  order: 3;
}

/* Lang button styles */
.lang-btn {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.lang-btn:hover {
  background: transparent;
  color: var(--accent);
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

.lang-divider {
  color: var(--accent);
  opacity: 0.5;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  z-index: 999;
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

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

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

@media (max-width: 768px) {
  /* Global */
  html { font-size: 15px; }

  /* WhatsApp Button */
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* About Section */
  .about {
    padding: 3rem 1.5rem !important;
  }

  .about-title {
    margin-bottom: 2rem !important;
  }

  .about-grid {
    gap: 1.5rem !important;
  }

  /* Services Section */
  .services {
    padding: 3rem 1.5rem !important;
  }

  .services-header {
    margin-bottom: 2rem !important;
  }

  .services-grid {
    gap: 1.5rem !important;
  }

  /* Portfolio Section */
  .portfolio {
    padding: 3rem 1.5rem !important;
  }

  .portfolio-header {
    margin-bottom: 2rem !important;
  }

  /* Testimonials Section */
  .testimonials {
    padding: 3rem 1.5rem !important;
  }

  .testimonials-header {
    margin-bottom: 2rem !important;
  }

  .testimonials-grid {
    gap: 1.5rem !important;
  }

  .testimonial-card {
    padding: 1.5rem !important;
  }

  /* Contact Section */
  .contact {
    padding: 3rem 1.5rem !important;
  }

  .contact-container {
    gap: 2rem !important;
  }

  /* Footer */
  .footer {
    padding: 2rem 1.5rem !important;
  }
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  order: -1;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(12px, 12px);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-name { display: none; }

  .nav-cta {
    display: none;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  margin-top: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-in-out);
}

.hero-slide img,
.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 2rem;
  z-index: 20;
  width: 90%;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
  animation: heroFade 1s 0.6s var(--ease-out) both;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  animation: heroFade 1s 0.8s var(--ease-out) both;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  animation: heroFade 1s 1s var(--ease-out) both;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFade 1s 1.2s var(--ease-out) both;
}

.hero-cta .btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
  border: 2px solid white;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    margin-top: 0;
  }

  .hero-content {
    top: 74%;
    padding: 1.5rem;
    max-width: 85%;
    width: 85%;
  }

  .hero-kicker {
    font-size: 0.85rem !important;
    letter-spacing: 1.8px !important;
    font-weight: 700 !important;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: white !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4) !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle {
    font-size: 1.05rem !important;
    margin-bottom: 1.8rem !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
  }

  .hero-cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.8rem !important;
    align-items: center !important;
  }

  .hero-cta .btn {
    width: 160px !important;
    font-size: 0.95rem !important;
    padding: 0.9rem 1.2rem !important;
    font-weight: 700 !important;
    transition: all 0.3s var(--ease-out) !important;
    box-shadow: 0 4px 16px rgba(184, 92, 58, 0.3) !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-cta .vagaro {
    display: none !important;
  }

  .hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #c9522d 100%);
    box-shadow: 0 6px 20px rgba(184, 92, 58, 0.35);
  }

  .hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #c9522d 0%, var(--accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(184, 92, 58, 0.4);
  }

  .hero-cta .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 92, 58, 0.3);
  }

  .hero-dots {
    bottom: 20px;
    gap: 6px;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .hero-dot.active {
    width: 18px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
    margin-top: 0;
  }

  .hero-content {
    top: 76%;
    padding: 1rem;
    max-width: 95%;
  }

  .hero-kicker {
    font-size: 0.65rem;
    margin-bottom: 0.8rem;
  }

  .hero-title {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    margin-bottom: 0.5rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    margin-bottom: 0.75rem;
  }

  .hero-cta {
    gap: 0.4rem;
  }

  .hero-cta .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .hero-dots {
    bottom: 15px;
    gap: 5px;
  }

  .hero-dot {
    width: 5px;
    height: 5px;
  }

  .hero-dot.active {
    width: 15px;
  }
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 5rem 2rem;
  background: var(--bg);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-title {
  margin-bottom: 3rem;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.about-card {
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ========== SERVICES SECTION (BENTO GRID) ========== */
.services {
  padding: 5rem 2rem;
  background: var(--bg);
}

.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.services-header h2 {
  margin-bottom: 1rem;
}

.services-header p {
  color: var(--ink-mute);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(184, 92, 58, 0.15);
  border-color: var(--accent);
}

.service-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

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

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

.service-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.service-subtitle {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  font-style: italic;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
  position: relative;
}

.service-description::before {
  content: "→";
  position: absolute;
  left: -1.5rem;
  top: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  animation: arrowFloat 2s ease-in-out infinite;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
}

.service-includes {
  margin-bottom: 1.5rem;
}

.service-includes strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.service-includes ul {
  list-style: none;
  padding-left: 0;
}

.service-includes li {
  padding: 0.4rem 0;
  color: var(--ink-mute);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.service-cta {
  display: flex;
  gap: 0.75rem;
}

.service-cta .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
}

/* ========== PORTFOLIO CAROUSEL ========== */
.portfolio {
  padding: 5rem 2rem;
  background: white;
}

.portfolio-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.portfolio-header h2 {
  margin-bottom: 0.5rem;
}

.portfolio-header p {
  color: var(--ink-mute);
}

.portfolio-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  scroll-behavior: smooth;
}

.portfolio-carousel::-webkit-scrollbar {
  height: 6px;
}

.portfolio-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.portfolio-carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.gallery-item {
  flex: 0 0 calc(50% - 1rem);
  scroll-snap-align: start;
  border-radius: 0.6rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 calc(100% - 1rem);
  }
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 5rem 2rem;
  background: var(--bg);
}

.testimonials-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.testimonials-header h2 {
  margin-bottom: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent);
}

.testimonial-quote {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
  font-size: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 0.95rem;
}

/* ========== MAP SECTION ========== */
.map-section {
  padding: 5rem 2rem;
  background: white;
  text-align: center;
}

.map-section h2 {
  margin-bottom: 0.5rem;
}

.map-section p {
  color: var(--ink-mute);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.map-container {
  max-width: 100%;
  height: 400px;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========== CONTACT SECTION ========== */
.contact {
  padding: 5rem 2rem;
  background: var(--bg);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 2rem;
  color: var(--ink);
}

.contact-info p {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.contact-info strong {
  color: var(--accent);
}

.contact-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.contact-social a:hover {
  background: var(--accent);
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
}

/* El formulario de Kommo trae su propia tarjeta: quitamos la del tema para no duplicar la caja (aplica en desktop y mobile) */
.contact-form-kommo {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 0 !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 58, 0.1);
}

.contact-form button {
  align-self: stretch;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========== FOOTER ========== */
.footer {
  padding: 3rem 2rem;
  background: var(--ink);
  color: white;
  text-align: center;
}

.footer-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  transition: color 0.3s var(--ease-out);
}

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

/* ========== LANGUAGE SELECTOR ========== */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}


/* ========== CUSTOM CURSOR ========== */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.cursor.is-ready {
  opacity: 1;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  mix-blend-mode: difference;
}

.cursor-ring.is-ready {
  opacity: 0.6;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out) 0.2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Defensive CSS for split-text */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ========== UTILITY ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

@media (max-width: 768px) {
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    flex-direction: column;
  }

  .service-image {
    height: 250px;
    width: 100%;
  }

  /* Portfolio */
  .portfolio-carousel {
    gap: 1rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  /* Contact */
  .contact-container {
    flex-direction: column;
    gap: 3rem;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

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

  /* Navigation */
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  /* General */
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  /* Hero optimizations */
  .hero {
    margin-top: 50px;
  }

  /* Services */
  .services-header h2 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
  }

  .service-card {
    padding: 1rem;
  }

  .service-image {
    height: 200px;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .service-price {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .service-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .service-includes {
    font-size: 0.8rem;
  }

  .service-cta {
    flex-direction: column;
  }

  .service-cta .btn {
    width: 100%;
    font-size: 0.8rem;
  }

  /* Portfolio */
  .portfolio-header h2 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
  }

  .portfolio-carousel {
    gap: 0.75rem;
  }

  .gallery-item {
    min-width: 90vw;
  }

  /* Testimonials */
  .testimonials-header h2 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
  }

  .testimonial-photo {
    width: 60px;
    height: 60px;
  }

  .testimonial-quote {
    font-size: 0.85rem;
    line-height: 1.4;
  }

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

  .testimonial-rating {
    font-size: 0.8rem;
  }

  /* Contact */
  .contact-info h2 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
    padding: 0.75rem;
    border-radius: 0.4rem;
  }

  .contact-form .btn {
    width: 100%;
    font-size: 0.9rem;
  }

  /* About */
  .about {
    padding: 3rem 1.5rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-card h3 {
    font-size: 1.1rem;
  }

  .about-card p {
    font-size: 0.9rem;
  }

  /* Navigation */
  .nav {
    padding: 0.5rem 1rem;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
  }

  .nav-name {
    font-size: 0.9rem;
  }

  .nav-menu {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .nav-cta-whatsapp {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

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

  /* General */
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 0 !important;
  }

  h2 {
    font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 12px;
  }

  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: clamp(1rem, 3vw, 1.8rem);
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .service-card {
    padding: 0.75rem;
  }

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