/* ============================================================
   identidad.css, Identidad visual oro1950.com para el portal
   Cargar SIEMPRE en último lugar. Fuente de verdad de la marca:
   web/wp-content/themes/oro1950-dawn-clone/assets/dawn-tokens.css
   Negro #121212 · blanco · Cormorant 300 · dorado #D4B960 ·
   botones píldora 28px/3px · inputs cuadrados · ancho 1200px
   ============================================================ */

/* ---- Tipografía Cormorant (auto-hospedada, misma que oro1950.com) ---- */
@font-face {
  font-family: Cormorant;
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/cormorant_n3.0b17a542c8aa1ebff75081c7c3a854475090bf40.woff2") format("woff2");
}
@font-face {
  font-family: Cormorant;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/cormorant_n7.c51184f59f7d2caf4999bcef8df2fc4fc4444aec.woff2") format("woff2");
}
@font-face {
  font-family: Cormorant;
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/cormorant_i3.daccd1544064a8f91b945b46407eb35b026a568b.woff2") format("woff2");
}
@font-face {
  font-family: Cormorant;
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/cormorant_i7.fa6e55789218717259c80e332e32b03d0c0e36e1.woff2") format("woff2");
}

/* ---- Tokens de marca ---- */
:root {
  --primary-color: #121212;
  --secondary-color: #D4B960;      /* dorado de marca (antes #D4AF37) */
  --accent-gold: #D4B960;
  --background: #121212;
  --background-light: #1a1a1a;
  --card-background: #1a1a1a;      /* tarjetas oscuras (antes blancas) */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.16);
  --border-gold: #D4B960;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 16px rgba(212, 185, 96, 0.18);
  --oro-font: Cormorant, Georgia, serif;
  --oro-radius-btn: 28px;
  --oro-max: 1200px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  background: var(--background) !important;
  color: var(--text-primary) !important;
  font-family: var(--oro-font) !important;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--oro-font) !important;
  font-weight: 300 !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.06em;
}
p, li, td, th, label, span, div { font-family: inherit; }
a { color: var(--secondary-color); }
a:hover { color: #e3cd87; }
.container { max-width: var(--oro-max); }

/* ---- Botones: píldora Dawn (borde 3px, radius 28px, uppercase) ---- */
button, .btn, .btn-primary, .btn-secondary, .cta, .lead-submit-btn,
.btn-add-cart, .cart-button, input[type="submit"] {
  font-family: var(--oro-font) !important;
  border-radius: var(--oro-radius-btn) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
  background-image: none !important;   /* fuera gradientes dorados */
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary, .cta, .lead-submit-btn, .btn-add-cart, button[type="submit"] {
  background-color: #ffffff !important;
  color: #121212 !important;
  border: 3px solid #ffffff !important;
}
.btn-primary:hover, .cta:hover, .lead-submit-btn:hover, .btn-add-cart:hover,
button[type="submit"]:hover {
  background-color: transparent !important;
  color: #ffffff !important;
}
.btn-secondary {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 3px solid rgba(255, 255, 255, 0.85) !important;
}
.btn-secondary:hover { background-color: #ffffff !important; color: #121212 !important; }

/* ---- Formularios: inputs cuadrados estilo Dawn ---- */
input, select, textarea {
  font-family: var(--oro-font) !important;
  border-radius: 0 !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  letter-spacing: 0.04em;
}
input::placeholder, textarea::placeholder { color: #bbbbbb !important; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 1px var(--secondary-color) !important;
}
label { color: var(--text-secondary); }

/* ---- Tarjetas / paneles / modales ---- */
.card, .product-card, .modal, .modal-content, .cart-sidebar,
.form-container, .login-container, .step-content, .highlight,
.info-card, .stat-card, .order-card {
  background: var(--card-background) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 0 !important;         /* media/cards sin radios, como Dawn */
}
.card h1, .card h2, .card h3, .modal h1, .modal h2, .modal h3 { color: #ffffff; }

/* ---- Tablas ---- */
table { color: var(--text-primary); }
th { color: var(--secondary-color) !important; font-weight: 700; }
td, th { border-color: var(--border-color) !important; }
tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---- Header / nav / footer en negro puro ---- */
header, .header, .navbar, nav.main-nav, footer, .footer {
  background: #121212 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
header a, .header a, .navbar a, nav a { color: #ffffff; }
header a:hover, .navbar a:hover, nav a:hover { color: var(--secondary-color); }
footer, .footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }
footer a { color: rgba(255, 255, 255, 0.72); }
footer a:hover { color: var(--secondary-color); }

/* ---- Acento dorado: precio, destacados ---- */
.price, .product-price, .gold-text, .accent {
  color: var(--secondary-color) !important;
}

/* ---- Detalles heredados del viejo tema a neutralizar ---- */
.hero, .section, .content { background-color: transparent; }
[style*="linear-gradient"] { background-image: none !important; }
.toast { border-radius: 0; font-family: var(--oro-font); }

/* ============================================================
   Overrides por página (estilos inline heredados del tema viejo)
   ============================================================ */

/* ---- Onboarding (wizard) ---- */
.onboarding-container {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.onboarding-header {
  background: #121212 !important;
  color: #ffffff !important;
  border-bottom: 1px solid #D4B960;
}
.onboarding-header h1 { color: #ffffff; }
.agreement-box {
  background: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 0 !important;
}
.agreement-box h1, .agreement-box h2, .agreement-box h3 { color: #ffffff !important; }
.agreement-box .footer { border-top-color: rgba(255,255,255,0.2) !important; color: rgba(255,255,255,0.6) !important; }
.checkbox-group {
  background: rgba(212, 185, 96, 0.08) !important;
  border-left: 4px solid #D4B960 !important;
  color: #ffffff;
  border-radius: 0 !important;
}
.info-box {
  background: rgba(74, 144, 217, 0.1) !important;
  border-left: 4px solid #4a90d9 !important;
  color: #cfe3f8 !important;
  border-radius: 0 !important;
}
.error-message {
  background: rgba(198, 40, 40, 0.15) !important;
  color: #ff8a80 !important;
  border-left: 4px solid #c62828 !important;
  border-radius: 0 !important;
}
.validation-feedback.valid { background: rgba(5, 150, 105, 0.15) !important; color: #7fd8b0 !important; }
.validation-feedback.invalid { background: rgba(198, 40, 40, 0.15) !important; color: #ff8a80 !important; }
.success-message { color: #ffffff; }

/* ---- Páginas legales ---- */
.legal-page, .legal-wrap {
  background: #1a1a1a !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.legal-page h1, .legal-wrap h1 { color: #ffffff !important; border-bottom-color: #D4B960 !important; }
.legal-page h2, .legal-wrap h2 { color: #ffffff !important; }
.legal-page p, .legal-page li, .legal-wrap p, .legal-wrap li { color: rgba(255, 255, 255, 0.8) !important; }
.back-link { color: #D4B960 !important; }
.back-link:hover { color: #e3cd87 !important; }
.highlight-box { background: rgba(212, 185, 96, 0.08) !important; color: #ffffff !important; }

/* ---- Modales del catálogo (inputs con !important propios) ---- */
.modal input, .modal select, .modal textarea {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0 !important;
}

/* ---- Legibilidad: textos descriptivos más grandes ---- */
.hero-subtitle { font-size: 24px !important; line-height: 1.5; }
.hero-description { font-size: 21px !important; line-height: 1.5; }
.section-subtitle { font-size: 20px !important; }
.lead-form-subtitle { font-size: 19px !important; }
.lead-form-privacy { font-size: 16px !important; }
.benefit-card p, .step-description, .reason-text, .target-card-content p {
  font-size: 19px !important;
  line-height: 1.55;
}
.testimonial-text { font-size: 19px !important; line-height: 1.55; }
.author-name { font-size: 17px !important; }
.author-business, .stat-label, .stat-description { font-size: 16px !important; }
.footer-description, .footer-links, .footer-links a, .footer-links li { font-size: 17px !important; }
.footer-copyright { font-size: 15px !important; }
.whatsapp-cta-text { font-size: 17px !important; }

/* ---- Contraste: componentes que usaban texto oscuro sobre fondos que ya no existen ---- */
.cart-button {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #D4B960 !important;
}
.cart-button:hover { background-color: rgba(212, 185, 96, 0.15) !important; color: #ffffff !important; }
.cart-total, .order-total, .order-summary h3, .modal-header h2,
.product-name, .cart-item-name, .cart-item-price {
  color: #ffffff !important;
}
.quantity-btn, .close-button, .tab-button { color: #ffffff !important; }
.quantity-btn:hover, .close-button:hover, .tab-button:hover { color: #D4B960 !important; background: rgba(212,185,96,0.12) !important; }
/* Items del carrito: la tarjeta era blanca con el texto ya forzado a blanco */
.cart-item {
  background: #242424 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0 !important;
}
.cart-item-image { background: #ffffff !important; } /* las fotos de producto tienen fondo blanco */
.quantity-control {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
}
/* Cajas de contacto: fondo crema heredado con texto blanco forzado */
.contact-box {
  background: rgba(212, 185, 96, 0.08) !important;
  border-left: 4px solid #D4B960 !important;
  border-radius: 0 !important;
}
.contact-box h2, .contact-box p, .contact-box strong { color: #ffffff !important; }

/* ---- Modal de pedido (Datos del cliente) y confirmación ---- */
#order-modal .modal-header h2, #order-modal .modal-header h3,
#confirmation-modal .modal-header h2, #confirmation-modal .modal-header h3,
.modal-header h2, .modal-header h3 {
  color: #ffffff !important;
}
.order-summary {
  background: #1f1f1f !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0 !important;
}
.order-summary h3 { color: #D4B960 !important; }
.order-summary-item, .order-summary-total, .order-summary-total strong { color: #ffffff !important; }
.order-summary-total span { color: #D4B960 !important; }
#order-modal input, #order-modal select, #order-modal textarea {
  background: #1a1a1a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0 !important;
}
#order-modal select option { background: #1a1a1a !important; color: #ffffff !important; }
#order-modal label, #order-modal .form-group label, #confirmation-modal label,
.modal label, label {
  color: rgba(255, 255, 255, 0.85) !important;
}
.modal input::placeholder, .modal textarea::placeholder,
#order-modal input::placeholder, #order-modal textarea::placeholder {
  color: #999999 !important;
  -webkit-text-fill-color: #999999 !important;
}

/* Modal "¡Pedido Realizado!": el HTML fuerza texto negro sobre el modal oscuro */
#confirmation-modal .modal-body,
#confirmation-modal .modal-body p {
  color: #ffffff !important;
}
#confirmation-modal .btn-whatsapp,
#confirmation-modal .btn-close {
  border-radius: 28px !important;
}
#confirmation-modal .btn-close {
  background: #D4B960 !important;
  color: #121212 !important;
}

/* ---- Correcciones tras verificación visual ---- */
/* Títulos con texto-gradiente del tema viejo → blanco sólido */
.section-title, .hero-title, .catalog-header h2, .catalog h2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}
.landing-header .header-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.form-group label, .onboarding-body label, form label {
  color: rgba(255, 255, 255, 0.78) !important;
}
/* Inputs cuadrados también cuando la página define su propia clase */
input.form-input, .form-input, .login-container input,
.form-group input, .form-group select, .form-group textarea {
  border-radius: 0 !important;
}

/* ---- Scrollbar sobrio (webkit) ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
