/*
Theme Name: Kadence Child — Unidad Visual
Theme URI: https://unidadvisual.com
Description: Child theme de Kadence para Unidad Visual Dra. Yazmine Soto
Author: Desarrollador
Template: kadence
Version: 1.1.0
Text Domain: kadence-child
*/

/* ═══════════════════════════════════════
   1. VARIABLES DE MARCA Y FUENTES
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy:    #0d1b2a;
  --deep:    #0a2540;
  --teal:    #1a7a6e;
  --teal-lt: #1f9485;
  --gold:    #c9a84c;
  --cream:   #f5f0e8;
  --white:   #ffffff;
  --muted:   #8a9ab0;
  --border:  rgba(201,168,76,0.25);
  --text:    #2a3a4a;
  --text-lt: #5a6a7a;

  /* Tipografías */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ═══════════════════════════════════════
   2. BASE GLOBAL
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 300; line-height: 1.15; color: var(--navy); }
a { color: var(--teal); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--gold); }

/* Ocultar elementos nativos de Kadence cuando usamos plantillas custom */
.page-home-custom .site-header, .page-home-custom .site-footer,
.blog-custom .site-header, .blog-custom .site-footer {
    display: none !important;
}

/* ═══════════════════════════════════════
   3. NAVEGACIÓN PRINCIPAL (COMÚN)
═══════════════════════════════════════ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 300; 
  letter-spacing: 0.08em; color: var(--cream); text-decoration: none; z-index: 100000;
}
.nav-logo span { color: var(--gold); font-style: italic; }

.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links li { list-style: none; margin: 0; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; z-index: 100000; }

/* ═══════════════════════════════════════
   4. FOOTER PERSONALIZADO (COMÚN)
═══════════════════════════════════════ */
footer.site-footer-custom {
  background: var(--navy); color: var(--muted);
  padding: 2rem 7%; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; margin-top: 4rem;
}
.footer-logo { font-family: var(--font-serif); font-size: 1rem; color: var(--cream); letter-spacing: 0.06em; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   5. DISEÑO RESPONSIVE (MÓVILES Y TABLETS)
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  /* Menú Hamburguesa */
  .mobile-menu-btn { display: block; }
  .nav-links { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy); flex-direction: column;
    justify-content: center; align-items: center; gap: 2rem;
    transform: translateY(-100%); transition: transform 0.3s ease-in-out;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links a { font-size: 1.2rem; }

  /* Ajustes generales */
  footer.site-footer-custom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr !important; }
}