/*
Theme Name: Elixir de los Dioses - Lujo Rústico Andaluz
Theme URI: https://elixirdelosdioses.com
Description: Tema WordPress premium para Aceite de Oliva Virgen Extra con estética de lujo rústico andaluz, WooCommerce integrado y formularios seguros.
Version: 1.0.0
Author: Manus AI
Author URI: https://manus.im
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elixir-dioses
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 8.0
*/

/* ============================================================
   ELIXIR DE LOS DIOSES - TEMA WORDPRESS
   Lujo Rústico Andaluz
   ============================================================ */

:root {
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa8c2c;
  --color-dark-bg: #0a0a0a;
  --color-dark-card: #141414;
  --color-dark-border: #262626;
  --color-light-text: #f9f8f6;
  --color-text-muted: rgba(249, 248, 246, 0.7);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-dark-bg);
  color: var(--color-light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 300;
}

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

a:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   CONTENEDOR Y LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ============================================================
   HEADER Y NAVEGACIÓN
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-dark-border);
  height: 80px;
  display: flex;
  align-items: center;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-light-text);
  transition: color 0.3s ease;
}

.site-branding a:hover {
  color: var(--color-gold);
}

.site-branding a .gold {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 300;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-light-text);
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--color-gold);
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
}

.header-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  padding: 0.625rem 1.25rem;
  background-color: var(--color-gold);
  color: var(--color-dark-bg);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-gold-light);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  margin-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 56rem;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

.hero-title .gold-italic {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 300;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(249, 248, 246, 0.8);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-secondary {
  padding: 1rem 2rem;
  border: 1px solid rgba(249, 248, 246, 0.3);
  background: transparent;
  color: var(--color-light-text);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

section {
  padding: 7rem 0;
  position: relative;
}

section.alt {
  background-color: var(--color-dark-card);
  border-top: 1px solid var(--color-dark-border);
  border-bottom: 1px solid var(--color-dark-border);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-title .gold-italic {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 300;
}

.section-description {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.8;
}

/* ============================================================
   GRID Y CARDS
   ============================================================ */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  color: var(--color-light-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   WOOCOMMERCE
   ============================================================ */

.woocommerce-product-gallery {
  margin-bottom: 2rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.product-description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.add-to-cart-button,
.woocommerce-button {
  padding: 1rem 2rem;
  background-color: var(--color-gold);
  color: var(--color-dark-bg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.add-to-cart-button:hover,
.woocommerce-button:hover {
  background-color: var(--color-gold-light);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-item {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-item:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-dark-card);
  border-top: 1px solid var(--color-dark-border);
  padding: 4rem 0 2rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 0.5rem;
}

.footer-widget ul a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-widget ul a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-dark-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  section {
    padding: 4rem 0;
  }

  .grid {
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.gold-text {
  color: var(--color-gold);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
