/*
Theme Name: Alter Actus Premium
Theme URI: https://alteractus.com
Author: Sistema Alter Actus S.L.
Description: Tema corporativo premium para consultoría psicosocial binacional.
Version: 11.0
Text Domain: alteractus
*/

/* ==========================================================================
   1. IMPORTACIÓN DE TIPOGRAFÍAS Y VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Montserrat:wght@700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --navy: #162148;
  --c-gold: #C9A84C;
  --c-aqueos: #8B0000;
  --c-lares: #0097A7;
  --text-main: #1e293b;
  --bg-main: #f8fafc;
  --white: #ffffff;
  --slate: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(22, 33, 72, 0.05), 0 2px 4px -1px rgba(22, 33, 72, 0.03);
  --shadow-md: 0 12px 30px -5px rgba(22, 33, 72, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(22, 33, 72, 0.15);
  --shadow: 0 10px 25px -5px rgba(22, 33, 72, 0.08);
  --trans: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--c-lares); text-decoration: none; transition: var(--trans); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.text-center { text-align: center; }
.data-grid, .div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

/* ==========================================================================
   3. COMPONENTES: BOTONES Y TARJETAS PREMIUM
   ========================================================================== */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem;
  border-radius: 8px; cursor: pointer; border: none;
  transition: var(--trans);
}
.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3b73 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(22, 33, 72, 0.2);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(22, 33, 72, 0.35); color: var(--white); }

.data-card, .div-card, .hero-card {
  background: var(--white); padding: 2.5rem; border-radius: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--trans);
}
.data-card:hover, .div-card:hover, .hero-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent;
}
.data-card .data-val { display: block; font-size: 3.5rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: 0.5rem; line-height: 1; }
.data-card .data-lbl { font-size: 1rem; color: var(--slate); }

.div-card.aqueos, .hero-card[data-target="aqueos-info"] { border-top: 6px solid var(--c-aqueos); }
.div-card.lares,  .hero-card[data-target="lares-info"]  { border-top: 6px solid var(--c-lares); }

/* fade-out para animaciones JS */
.fade-out { opacity: 0; transform: scale(0.97); pointer-events: none; }
.active-focus { box-shadow: var(--shadow-hover); border-color: transparent; }

/* ==========================================================================
   4. NAVEGACIÓN GLASSMORPHISM
   ========================================================================== */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 1000; border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; }
.main-nav { display: flex; gap: 2.5rem; align-items: center; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.main-nav a:hover { color: var(--c-gold); opacity: 1; }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: 0.6rem 1.5rem; border-radius: 6px; }
.nav-cta:hover { background: var(--c-gold) !important; box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px; justify-content: center; }
.hamburger span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 70px; left: 0; width: 100%; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem; gap: 0.5rem; box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--navy); padding: 0.75rem 0; font-weight: 600; font-size: 1rem; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--c-gold); }

/* ==========================================================================
   5. FORMULARIOS Y TERMÓMETROS
   ========================================================================== */
.form-group { margin-bottom: 1.5rem; width: 100%; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 1.1rem; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: var(--bg-main);
  color: var(--navy); transition: var(--trans); outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-gold); background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.form-feedback { display: none; padding: 1rem 1.5rem; border-radius: 8px; font-weight: 600; margin-top: 1rem; }
.form-feedback.success { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-feedback.error   { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.lares-thermometer {
  background: var(--white); padding: 3.5rem; border-radius: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md); max-width: 800px; margin: 0 auto;
}
.lares-question { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.lares-question:last-of-type { border-bottom: none; }
.lq-label { color: var(--navy); font-weight: 600; margin-bottom: 1rem; font-size: 1rem; line-height: 1.6; display: block; }
.lares-options { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lares-options input[type="radio"] { display: none; }
.lares-options label {
  background: var(--bg-main); border: 1px solid var(--border);
  padding: 0.65rem 1.2rem; border-radius: 8px; cursor: pointer;
  transition: var(--trans); font-weight: 500; font-size: 0.9rem;
}
.lares-options label:hover { background: #edf2f7; border-color: var(--c-lares); color: var(--c-lares); }
.lares-options input[type="radio"]:checked + label,
.lares-options label.is-checked {
  background: var(--navy); color: var(--white); border-color: var(--navy);
  box-shadow: 0 4px 10px rgba(22,33,72,0.2);
}
.lt-submit { background: var(--c-lares); color: var(--white); width: 100%; justify-content: center; font-size: 1rem; margin-top: 1rem; }
.lt-submit:hover { background: var(--navy); transform: translateY(-2px); }
.lt-result { display: none; margin-top: 1.5rem; padding: 1.5rem; border-radius: 12px; border-left: 4px solid var(--c-lares); background: #f0fbfd; }
.lt-result.is-visible { display: block; }
.lt-result.alta-conflictividad { border-left-color: var(--c-aqueos); background: #fef2f2; }

/* ==========================================================================
   6. ANIMACIONES REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Logo */
.logo-base { height: 180px; width: auto; display: block; margin: 0 auto 1.5rem; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
#site-footer { background: var(--navy); color: var(--white); padding: 5rem 0 2rem; }
.footer-info { color: #cbd5e1 !important; font-size: 0.9rem; line-height: 2; }
.footer-info a { color: var(--white); font-weight: 700; }
.footer-info a:hover { color: var(--c-gold); }
.footer-legal { margin-top: 2rem; font-size: 0.8rem; color: #94a3b8; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: var(--c-gold); }

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 99999;
  display: flex; align-items: center; justify-content: center; transition: var(--trans);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 34px; height: 34px; fill: white; }

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .logo-base { height: 130px; }
  .data-grid, .div-grid { grid-template-columns: 1fr; }
  .data-card, .div-card, .hero-card { padding: 1.75rem; }
  .lares-thermometer { padding: 2rem; }
  .lares-options { flex-direction: column; }
  .whatsapp-float { right: 15px; bottom: 15px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .footer-legal { flex-direction: column; align-items: center; gap: 0.5rem; }
}

/* ==========================================================================
   9. SINGLE POST
   ========================================================================== */
.single-post { padding: 8rem 0 4rem; background: var(--bg-main); }
.single-header { text-align: center; margin-bottom: 3rem; }
.single-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.single-meta { font-size: 0.95rem; color: var(--slate); font-weight: 500; }
.single-meta .single-cat { color: var(--c-gold); font-weight: 700; text-transform: uppercase; }
.single-featured img { border-radius: 16px; width: 100%; object-fit: cover; box-shadow: var(--shadow-md); margin-bottom: 3rem; }
.single-body { font-size: 1.1rem; line-height: 1.8; color: var(--slate); max-width: 800px; margin: 0 auto; }
.breadcrumbs { font-size: 0.85rem; color: var(--slate); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--navy); font-weight: 600; }
