/*
Theme Name: Studio VF
Theme URI: https://studiovfbeauty.com
Author: Studio VF
Description: Tema oficial de Studio VF — Salón de belleza y escuela de colorimetría en Bogotá
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: studiovf
*/

/* ============================================================
   SISTEMA DE DISEÑO — STUDIO VF
   Paleta: Negro · Blanco · Dorado
   Tipografía: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

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

/* ============================================================
   RESET FULL-WIDTH — MUST BE FIRST
   Neutraliza cualquier wrapper de WordPress o tema base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* Wrappers de WordPress — todos neutralizados */
#page, #content, #primary, #secondary,
.site, .site-content, .site-main,
.content-area, .widget-area,
.wp-site-blocks, .is-layout-flow,
.hentry, article.page, article.post,
.entry-header, .entry-content, .entry-footer,
.post-thumbnail, .page-header, .page-content,
.ast-container, .ast-row, .ast-separate-container,
.fl-builder-content, .elementor-section,
.vc_row, .vc_column {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* Nuestro main */
#svf-main {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Ocultar admin bar */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }


/* ── VARIABLES ── */
:root {
  /* Colores principales */
  --c-black:       #0A0A0A;
  --c-black-soft:  #111111;
  --c-black-card:  #161616;
  --c-black-hover: #1E1E1E;
  --c-white:       #FAFAF8;
  --c-white-off:   #F0EDE8;
  --c-white-muted: #C8C5BE;

  /* Dorado — el alma de la marca */
  --c-gold:        #C9A84C;
  --c-gold-light:  #E8C96A;
  --c-gold-dark:   #9A7A30;
  --c-gold-pale:   #F5EDD6;
  --c-gold-dim:    rgba(201,168,76,0.15);

  /* Gris */
  --c-gray-100:    #1A1A1A;
  --c-gray-200:    #2A2A2A;
  --c-gray-300:    #3A3A3A;
  --c-gray-400:    #555555;
  --c-gray-500:    #888888;
  --c-gray-600:    #AAAAAA;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;
  --text-hero: clamp(3.5rem, 8vw, 7rem);

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Transiciones */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration:  0.3s;
  --duration-slow: 0.6s;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-white);
  background-color: var(--c-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c-white);
  background: transparent;
  border: none;
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--c-gray-500); }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--wide {
  max-width: var(--container-wide);
  padding-inline: var(--space-6);
  margin-inline: auto;
}

/* ── TIPOGRAFÍA ── */
.display { font-family: var(--font-display); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-hero { font-size: var(--text-hero); font-weight: 300; }
.text-6xl  { font-size: var(--text-6xl); }
.text-5xl  { font-size: var(--text-5xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-xl   { font-size: var(--text-xl); }
.text-lg   { font-size: var(--text-lg); }
.text-sm   { font-size: var(--text-sm); }
.text-xs   { font-size: var(--text-xs); }

.text-gold        { color: var(--c-gold); }
.text-gold-light  { color: var(--c-gold-light); }
.text-white       { color: var(--c-white); }
.text-muted       { color: var(--c-gray-500); }
.text-italic      { font-style: italic; }
.text-upper       { text-transform: uppercase; letter-spacing: 0.12em; }
.text-center      { text-align: center; }

/* Subtítulo decorativo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--c-gold);
  flex-shrink: 0;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-black);
  border: 1px solid var(--c-gold);
}
.btn--gold:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,0.06);
}

.btn--outline-gold {
  background: transparent;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
}
.btn--outline-gold:hover {
  background: var(--c-gold);
  color: var(--c-black);
}

.btn--dark {
  background: var(--c-black-card);
  color: var(--c-white);
  border: 1px solid var(--c-gray-200);
}
.btn--dark:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn--lg { padding: 18px 44px; font-size: var(--text-xs); }
.btn--sm { padding: 10px 22px; font-size: calc(var(--text-xs) - 0.05rem); }

/* ── DIVISOR DECORATIVO ── */
.divider-gold {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  margin-inline: auto;
  margin-block: var(--space-6);
}
.divider-gold--left { margin-inline: 0; }

/* ── SECCIÓN PADDINGS ── */
.section { padding-block: var(--space-24); }
.section--sm { padding-block: var(--space-16); }
.section--lg { padding-block: var(--space-32); }
.section--dark { background: var(--c-black); }
.section--card { background: var(--c-black-card); }
.section--soft { background: var(--c-black-soft); }

/* ── LÍNEA DECORATIVA VERTICAL ── */
.v-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--c-gold-dark), transparent);
  min-height: 80px;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid;
}
.badge--gold {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(201,168,76,0.08);
}
.badge--urgent {
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
  background: rgba(232,201,106,0.12);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* ── CARDS ── */
.card {
  background: var(--c-black-card);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.card:hover {
  border-color: var(--c-gold-dark);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.1);
}

/* ── IMÁGENES CON OVERLAY ── */
.img-overlay {
  position: relative;
  overflow: hidden;
}
.img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.img-overlay:hover img { transform: scale(1.04); }
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 60%);
  pointer-events: none;
}

/* ── STAT NÚMERO ── */
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  margin-top: var(--space-2);
}

/* ── FORMULARIO ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-500);
}
.form-input {
  padding: 14px 16px;
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  color: var(--c-white);
  font-size: var(--text-base);
  transition: border-color var(--duration) var(--ease);
  width: 100%;
}
.form-input:focus {
  border-color: var(--c-gold);
  outline: none;
}
.form-input::placeholder { color: var(--c-gray-400); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}
.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.5s; }

/* Reveal en scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold-dark), var(--c-gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  animation: float-wa 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes float-wa {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.wa-float:hover { animation: none; transform: scale(1.1); }

/* ── CURSOR PERSONALIZADO ── */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: opacity 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.6);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
body:not(:hover) .cursor-dot,
body:not(:hover) .cursor-ring { opacity: 0; }

/* ── UTILIDADES ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.relative  { position: relative; }
.overflow-hidden { overflow: hidden; }
.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.w-full { width: 100%; }
.mt-4   { margin-top: var(--space-4); }
.mt-6   { margin-top: var(--space-6); }
.mt-8   { margin-top: var(--space-8); }
.mb-4   { margin-bottom: var(--space-4); }
.mb-6   { margin-bottom: var(--space-6); }
.mb-8   { margin-bottom: var(--space-8); }
.mb-12  { margin-bottom: var(--space-12); }

/* ── GRID SISTEMA ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }

/* ── TEXTO DORADO DEGRADADO ── */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-light) 50%, var(--c-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SEPARADOR ORNAMENTAL ── */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--c-gold-dark);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold-dark));
}
.ornament::after {
  background: linear-gradient(to left, transparent, var(--c-gold-dark));
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --text-hero: clamp(2.8rem, 7vw, 5rem);
    --text-6xl: 3.5rem;
    --text-5xl: 3rem;
    --space-24: 5rem;
    --space-32: 6rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --text-hero: clamp(2.5rem, 10vw, 4rem);
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
  }
  .container { padding-inline: var(--space-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3--mobile-2 { grid-template-columns: repeat(2, 1fr); }
  .hide-mobile { display: none !important; }
  .cursor-dot, .cursor-ring { display: none; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2.2rem;
    --text-4xl: 1.8rem;
    --text-3xl: 1.6rem;
    --space-12: 2rem;
    --space-16: 2.5rem;
  }
  .btn--lg { padding: 15px 28px; }
}

/* ============================================================
   NEUTRALIZAR WRAPPERS DE WORDPRESS
   Esto asegura que el tema ocupe 100% del ancho siempre
   ============================================================ */

/* Reset de wrappers que WordPress puede inyectar */
.wp-site-blocks,
.wp-block-group,
.entry-content,
.page-content,
.site-content,
#content,
#page,
.hentry,
.post,
.page,
article.page,
article.post,
.site,
.site-main,
.ast-container,
.inside-article,
.fl-row-content-wrap,
.elementor-section-wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Asegurar que body y html ocupen todo */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* El main que abre en header.php */
main#main-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

/* Neutralizar margin del admin bar */
html { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

/* WordPress a veces agrega padding-top al body cuando hay admin bar */
body.admin-bar { padding-top: 0 !important; margin-top: 0 !important; }

/* Neutralizar estilos del editor de bloques */
.wp-block { max-width: 100% !important; }
.alignwide, .alignfull { max-width: 100% !important; width: 100% !important; }

/* Padding top en el cuerpo para compensar el header fijo */
body { padding-top: 0; }

/* El primer section después del header necesita compensar la altura del nav fijo */
.hero,
.escuela-hero,
.servicios-hero,
.quienes-hero,
.contacto-hero {
  padding-top: 100px; /* altura del header */
}

@media (max-width: 768px) {
  .hero,
  .escuela-hero,
  .servicios-hero,
  .quienes-hero,
  .contacto-hero {
    padding-top: 80px;
  }
}

/* Asegurar que las secciones sean full width */
section,
.section,
.hero,
.escuela-hero,
.escuela-promo,
.galeria-section,
.testimonios-section,
.ubicacion-section,
.footer-cta-banner,
.footer-main,
.footer-bottom,
.site-header,
.site-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
