/*
Theme Name: Cielo Jewelry
Theme URI: https://cielojewelry.com
Author: Antigravity & Cielo Team
Description: Tema a medida ultraligero y autónomo para Cielo — Joyería de autor. 100% CSS nativo sin dependencias externas.
Version: 1.1.3
Text Domain: cielo-jewelry
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --background: #fbfbf9;
  --foreground: #1c1c1b;
  --night-deep: #090a0d;
  --night: #12141a;
  --bone: #f4f3ef;
  --silver: #c9c7c2;
  --border: rgba(28, 28, 27, 0.12);
  --border-light: rgba(244, 243, 239, 0.2);
  --muted: rgba(28, 28, 27, 0.65);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 1.125rem;
  overflow-x: hidden;
}

p, li, span, input, textarea, select, button {
  font-family: var(--font-serif);
}

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

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

/* Tipografía */
.font-serif, h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  font-weight: 500;
}

.underline-quiet {
  position: relative;
  display: inline-block;
}
.underline-quiet::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.underline-quiet:hover::after {
  width: 100%;
}

/* =========================================================================
   HEADER & MENÚ RESPONSIVE
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.4s ease;
  padding: 1rem 1.25rem;
  background: transparent;
}
@media (min-width: 768px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }
}

.site-header .header-nav-link {
  color: var(--bone);
  transition: color 0.3s ease;
}

.site-header.not-home {
  background: rgba(251, 251, 249, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.not-home .header-nav-link {
  color: var(--foreground) !important;
}

.site-header.scrolled {
  background: rgba(251, 251, 249, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled .header-nav-link {
  color: var(--foreground) !important;
}

.header-container {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(244, 243, 239, 0.3);
}
@media (min-width: 768px) {
  .header-logo {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.header-nav {
  display: none;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}
.header-nav li {
  list-style: none;
}

/* BOTÓN HAMBURGUESA MÓVIL */
.mobile-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) {
  .mobile-toggle-btn {
    display: none;
  }
}
.mobile-toggle-btn span {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background-color: var(--bone);
  transition: background-color 0.3s ease;
}
.site-header.not-home .mobile-toggle-btn span,
.site-header.scrolled .mobile-toggle-btn span {
  background-color: var(--foreground) !important;
}

/* DRAWER MENÚ MÓVIL */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.mobile-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.5rem;
  line-height: 1;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 0;
}
.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.mobile-nav-links a:hover {
  opacity: 0.6;
}
.mobile-drawer-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* =========================================================================
   HERO ADAPTADO A MÓVIL
   ========================================================================= */
.hero-section {
  position: relative;
  height: 100svh;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  background-color: var(--night-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 13, 0.4) 0%, transparent 40%, rgba(9, 10, 13, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}
@media (min-width: 768px) {
  .hero-content {
    padding: 0 3rem 6rem;
  }
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--bone);
  background-color: var(--bone);
  color: var(--night-deep);
  padding: 0.9rem 1.5rem;
  transition: all 0.4s ease;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .btn-primary {
    padding: 1rem 1.75rem;
    min-width: 200px;
  }
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--bone);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(244, 243, 239, 0.5);
  color: var(--bone);
  padding: 0.9rem 1.5rem;
  transition: all 0.4s ease;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .btn-secondary {
    padding: 1rem 1.75rem;
    min-width: 200px;
  }
}
.btn-secondary:hover {
  border-color: var(--bone);
  background-color: rgba(244, 243, 239, 0.1);
}

/* =========================================================================
   CREA TU JOYA
   ========================================================================= */
.crea-section {
  padding: 4.5rem 1.25rem;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .crea-section {
    padding: 10rem 3rem;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
  }
}
.crea-media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background-color: var(--night-deep);
}
.crea-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crea-title {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .crea-title {
    font-size: 3.75rem;
  }
}
.crea-desc {
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .crea-desc {
    margin-top: 2rem;
    font-size: 1.35rem;
  }
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--foreground);
  color: var(--foreground);
  padding: 0.9rem 1.5rem;
  margin-top: 2rem;
  transition: all 0.4s ease;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .btn-dark {
    padding: 1rem 1.75rem;
    min-width: 220px;
    margin-top: 2.5rem;
  }
}
.btn-dark:hover {
  background-color: var(--foreground);
  color: var(--background);
}

/* =========================================================================
   SECCIÓN: ¿CÓMO FUNCIONA?
   ========================================================================= */
.how-it-works-section {
  background: radial-gradient(120% 80% at 50% 0%, #f7f6f2 0%, #eceae3 100%);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .how-it-works-section {
    padding: 7rem 0;
  }
}
.how-it-works-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 3.5rem;
}
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.step-num {
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.step-title {
  font-size: 1.5rem;
  line-height: 1.25;
}
.step-divider {
  width: 2rem;
  height: 1px;
  background-color: var(--border);
  margin: 1.25rem 0;
}
.step-desc {
  color: var(--muted);
  font-family: var(--font-serif);
  line-height: 1.6;
  font-size: 1.2rem;
}

/* =========================================================================
   CATEGORÍAS RESPONSIVE (2 COLUMNAS EN MÓVIL)
   ========================================================================= */
.categories-section {
  padding: 4rem 1.25rem;
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .categories-section {
    padding: 6rem 3rem;
  }
}
.categories-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .categories-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
  }
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}
.category-card {
  display: block;
}
.category-img-box {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: rgba(201, 199, 194, 0.2);
  margin-bottom: 0.75rem;
}
.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.category-card:hover .category-img-box img {
  transform: scale(1.05);
}
.category-name {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

/* =========================================================================
   SECCIÓN CINEMATOGRÁFICA "UNA PIEZA QUE SOLO EXISTE PARA TI" (VIDEO)
   ========================================================================= */
.banner-proyectos-video {
  position: relative;
  height: 80svh;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  background-color: var(--night-deep);
  display: flex;
  align-items: flex-end;
}
.banner-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.banner-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 10, 13, 0.85) 0%, rgba(9, 10, 13, 0.35) 50%, transparent 100%);
}
.banner-video-content {
  position: relative;
  z-index: 10;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  color: var(--bone);
}
@media (min-width: 768px) {
  .banner-video-content {
    padding: 0 3rem 6rem;
  }
}
.banner-video-heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-top: 1rem;
  max-width: 18ch;
}
.btn-banner-proyectos {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(244, 243, 239, 0.6);
  color: var(--bone);
  padding: 1rem 1.75rem;
  transition: all 0.4s ease;
}
.btn-banner-proyectos:hover {
  background-color: var(--bone);
  color: var(--night-deep);
  border-color: var(--bone);
}
.btn-banner-proyectos:hover span:last-child {
  transform: translateX(4px);
}

/* =========================================================================
   SECCIÓN: CTA FINAL "¿LISTA PARA TU PIEZA?" (IDÉNTICO A LOVABLE)
   ========================================================================= */
.cta-final-section {
  background: radial-gradient(120% 80% at 50% 0%, #171b24 0%, #0d0e13 60%, #07080a 100%);
  padding: 6rem 1.25rem;
  color: var(--bone);
  border-top: 1px solid rgba(244, 243, 239, 0.1);
  text-align: center;
}
@media (min-width: 768px) {
  .cta-final-section {
    padding: 8rem 2rem;
  }
}
.cta-final-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.cta-final-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  max-width: 18ch;
}
.cta-final-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .cta-final-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    width: auto;
  }
}

/* =========================================================================
   FOOTER RESPONSIVE
   ========================================================================= */
.site-footer {
  background: radial-gradient(120% 80% at 50% 0%, #171b24 0%, #0d0e13 60%, #07080a 100%);
  color: var(--bone);
  padding: 4.5rem 1.25rem;
  border-top: 1px solid rgba(244, 243, 239, 0.1);
}
@media (min-width: 768px) {
  .site-footer {
    padding: 8rem 3rem;
  }
}
.footer-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
    gap: 3.5rem;
  }
}
.footer-title {
  font-size: 2rem;
  margin-top: 1.25rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .footer-title {
    font-size: 2.25rem;
  }
}
.footer-form {
  margin-top: 2rem;
  display: flex;
  border-bottom: 1px solid rgba(244, 243, 239, 0.3);
  padding-bottom: 0.75rem;
  max-width: 400px;
}
.footer-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bone);
  font-size: 0.95rem;
}
.footer-input::placeholder {
  color: rgba(244, 243, 239, 0.4);
}
.footer-submit {
  background: transparent;
  border: none;
  color: var(--bone);
  cursor: pointer;
  padding: 0 0.5rem;
}
.footer-links {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: rgba(244, 243, 239, 0.85);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(251, 251, 249, 0.95);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}
.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--foreground);
  color: var(--background);
}
.whatsapp-float svg {
  width: 1.4rem;
  height: 1.4rem;
}
