/*
Theme Name: Meli García Coach
Theme URI: https://meligarciacoach.com
Author: Kimi AI
Author URI: https://kimi.com
Description: Tema personalizado para Meli García Coach - Coaching de vida y crecimiento personal. Diseño elegante con paleta de colores tierra, tipografía serif y animaciones suaves.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meli-garcia-coach
Tags: coaching, wellness, personal-brand, responsive, elegant
*/

/* ============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================ */

:root {
  /* Colores principales */
  --color-bg-primary: #FAF6F1;
  --color-bg-secondary: #F5EFE8;
  --color-accent: #B8956A;
  --color-primary: #8B7355;
  --color-primary-dark: #6B5A45;
  
  /* Colores de texto */
  --color-text-primary: #2D2D2D;
  --color-text-secondary: #5A5A5A;
  --color-text-muted: #8A8A8A;
  --color-text-light: #FFFFFF;
  
  /* Colores de superficie */
  --color-card: #FFFFFF;
  --color-border: #E8E0D5;
  --color-cta-bg: #8B7355;
  
  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Bordes */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* ============================================
   RESET Y BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

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

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

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

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

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-ghost {
  background-color: var(--color-card);
  color: var(--color-text-primary);
}

.btn-ghost:hover {
  background-color: var(--color-bg-secondary);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.site-header.scrolled {
  background-color: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.site-logo:hover {
  color: var(--color-primary);
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--color-primary);
}

.main-nav a.current::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
}

/* Menú móvil */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 1rem;
  right: 1rem;
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.mobile-menu a:hover,
.mobile-menu a.current {
  background-color: var(--color-bg-primary);
  color: var(--color-primary);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.7), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8rem 0 4rem;
}

.hero-inner {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 em {
  color: var(--color-primary);
  font-style: italic;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator-inner {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator-inner::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

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

.section {
  padding: var(--spacing-3xl) 0;
}

.section-bg-primary { background-color: var(--color-bg-primary); }
.section-bg-secondary { background-color: var(--color-bg-secondary); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

/* ============================================
   FEATURES / PILARES
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: rgba(139, 115, 85, 0.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

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

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   PRODUCTOS / SERVICIOS
   ============================================ */

.products-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.product-card-large {
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.product-card-large .product-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .product-card-large .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-content {
  padding: 2rem;
}

@media (min-width: 1024px) {
  .product-content {
    padding: 3rem;
  }
}

.product-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.product-content p {
  margin-bottom: 1.5rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.product-features li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.product-image {
  position: relative;
  min-height: 300px;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.product-card {
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.product-card-simple {
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  margin-bottom: 2rem;
  line-height: 1.3;
}

.about-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
}

.link-arrow:hover {
  color: var(--color-primary-dark);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.testimonial-card {
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-card p {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 500;
  color: var(--color-text-primary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background-color: var(--color-primary);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-section .btn-ghost {
  color: var(--color-text-primary);
}

.cta-section .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text-light);
}

.cta-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
}

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

.site-footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-2xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   PÁGINA DE CONTENIDO
   ============================================ */

.page-header {
  padding: 8rem 0 4rem;
  background-color: var(--color-bg-primary);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  padding: 4rem 0;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .content-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.content-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: auto;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-card);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   ANIMACIONES
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 767px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-content {
    padding: 6rem 0 3rem;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

/* Admin bar fix */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* WordPress alignments */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

/* Clear floats */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Screen reader text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
