/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* LIGHT MODE: Cream and Rich Wood Browns */
  --bg:       #FDFBF7; /* Soft, warm premium cream background */
  --surface:  #F4EFEA; /* Light warm sand tone for cards/boxes */
  --surface-2: #EADFD5; /* Slightly darker sand for accents and menu borders */
  --dark:     #2D1E12; /* Deep espresso brown for dark layout sections */
  --text:     #23170E; /* Dark coffee brown for highly legible text */
  --muted:    #655243; /* Medium walnut brown for subtitles and secondary details */
  --accent:   #54321A; /* Classic deep timber brown for main buttons and highlights */
  --accent-hover: #3D220F; /* Darker dark-chocolate brown for button hover states */
  --radius:   8px;
  --section-pad: 80px 60px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px 0 0;
  position: sticky;
  top: 0;
  background: #000000;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  min-height: 100px;
}

.header.scrolled {
  border-bottom-color: #CC0000;
}

.logo {
  display: flex;
  align-items: center;
  height: 100px;
}

.logo img {
  height: 100px;
  width: 280px;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--surface-2);
  transition: width var(--transition);
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 60px;
  gap: 32px;
}

.hero-text {
  flex: 1;
  max-width: 480px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text p {
  color: var(--muted);
  font-size: 16px;
  max-width: 400px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--surface-2);
  color: var(--text) !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--accent) !important;
  color: #fff !important;
}

.btn-whatsapp:hover {
  background: var(--accent-hover) !important;
}

.hero-img {
  flex: 1 1 480px;
  max-width: 560px;
}

.hero-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(84,50,26,0.25);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  color: #fff !important;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(84,50,26,0.35);
}

/* =====================
   SECTIONS STANDARD
   ===================== */
.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--text);
}

.section-header p {
  color: var(--muted);
  font-size: 15px;
}

/* =====================
   TRABAJOS / CAROUSEL
   ===================== */
.trabajos {
  padding: var(--section-pad);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(35, 23, 14, 0.08);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track img {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--text);
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(84,50,26,0.3);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* =====================
   SERVICIOS
   ===================== */
.servicios {
  padding: var(--section-pad);
  background: var(--bg);
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--surface-2);
}

.servicio-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.servicio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.servicio p {
  font-size: 14px;
  color: var(--muted);
}

/* =====================
   QUOTE / FRASE
   ===================== */
.frase {
  padding: 120px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  background: var(--surface);
}

.frase blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto;
}

/* =====================
   SOBRE MI
   ===================== */
.sobre-mi {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: var(--section-pad);
  background: var(--surface);
}

.sobre-mi-visual {
  flex: 1;
  max-width: 420px;
}

.sobre-mi-deco {
  background: var(--accent);
  border-radius: 16px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  color: #fff;
  min-height: 380px;
  justify-content: center;
}

.deco-icon {
  font-size: 64px;
  line-height: 1;
}

.deco-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.deco-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.deco-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.deco-stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.deco-stat span {
  font-size: 13px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sobre-mi-text {
  flex: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.sobre-mi-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text);
}

.sobre-mi-text h2 em {
  font-style: italic;
  color: var(--accent);
}

.sobre-mi-text p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 460px;
}

.sobre-mi-text p strong {
  color: var(--text);
}

/* =====================
   COMO TRABAJAMOS
   ===================== */
.como-trabajamos {
  padding: var(--section-pad);
  background: var(--dark);
}

.como-trabajamos .section-header h2 {
  color: #fff;
}

.como-trabajamos .section-header p {
  color: rgba(255,255,255,0.6);
}

.principios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.principio {
  border-top: 2px solid var(--surface-2);
  padding-top: 24px;
}

.principio-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--surface-2);
  line-height: 1;
  margin-bottom: 16px;
}

.principio h3 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.principio p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonios {
  padding: var(--section-pad);
  background: var(--bg);
}

.grid-testimonios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonio {
  background: var(--surface);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 3px solid var(--accent);
}

.testimonio-texto {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.autor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.testimonio-autor strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.testimonio-autor span {
  font-size: 12px;
  color: var(--muted);
}

/* =====================
   FAQ ACCORDION
   ===================== */
.faq {
  padding: var(--section-pad);
  background: var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-2);
}

.faq-pregunta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: color var(--transition);
}

.faq-pregunta:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.open .faq-respuesta {
  max-height: 200px;
  padding: 0 20px 18px;
}

.faq-respuesta p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* =====================
   FOOTER
   ===================== */
.footer-zona {
  font-size: 13px;
  color: rgba(255,255,255,0.6) !important;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
  background: #000000;
  border-top: 1px solid #CC0000;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 70px;
  width: 240px;
  object-fit: contain;
  object-position: left center;
}

.footer-info p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-info a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

.footer-info a:hover {
  color: #fff;
}

.redes {
  display: flex;
  gap: 16px;
}

.redes a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.redes a:hover {
  color: #fff;
}

/* =====================
   MEDIA QUERIES (RESPONSIVE)
   ===================== */
@media (max-width: 900px) {
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 24px 0 0;
    flex-wrap: wrap;
    gap: 0;
    min-height: 72px;
    background: #000000;
  }

  .logo {
    height: 72px;
    padding: 0;
  }

  .logo img {
    height: 72px;
    width: 200px;
    object-fit: cover;
    object-position: center;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 16px 0 8px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
  }

  nav a:hover {
    color: #fff;
  }

  nav a::after {
    display: none;
  }

  .hero {
    flex-direction: column;
    padding: 24px 24px 32px;
    min-height: auto;
    text-align: center;
    gap: 16px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    margin-bottom: 12px;
  }

  .hero-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .hero-img {
    max-width: 100%;
    width: 100%;
  }

  .hero-img img {
    aspect-ratio: 16/9;
    max-height: 220px;
  }

  .hero-btns {
    justify-content: center;
  }

  .trabajos,
  .servicios,
  .frase,
  .sobre-mi,
  .testimonios,
  .como-trabajamos,
  .faq {
    padding: 40px 24px;
  }

  .sobre-mi {
    flex-direction: column;
    gap: 32px;
  }

  .sobre-mi-visual {
    max-width: 100%;
    width: 100%;
  }

  .sobre-mi-text p {
    max-width: 100%;
  }

  .principios {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-testimonios {
    grid-template-columns: 1fr;
  }

  .grid-servicios {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
  }
}

/* ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-track {
    transition: none !important;
  }
}