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

/* ==========================================================================
   1. IMPORTACIÓN DE TIPOGRAFÍAS Y VARIABLES
   ========================================================================== */

/* Montserrat para titulares (700-800) y DM Sans para texto corrido (400-500) */
@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 {
  /* Paleta Oficial Alter Actus */
  --navy: #162148;       /* Azul Alter Actus / Primario */
  --c-gold: #C9A84C;     /* Oro Alter Actus / Secundario */
  --c-aqueos: #8B0000;   /* Rojo Oscuro / División AQUEOS */
  --c-lares: #0097A7;    /* Cian Profundo / División LARES */
  --c-violet: #7A4DBF;   /* Violeta diversidad / Acento */
  --text-main: #0F0F0F;  /* Negro tipográfico */
  
  /* Colores de Apoyo (Fondos y Bordes) */
  --bg-main: #f8f9fa;    /* Fondo claro general */
  --white: #ffffff;
  --slate: #475569;      /* Gris para texto secundario */
  --border: #e2e8f0;     /* Gris claro para bordes */
  
  /* Utilidades */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --trans: all 0.3s ease;
  --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.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
}

a {
  color: var(--c-lares);
  text-decoration: none;
  transition: var(--trans);
}

a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   3. CONTENEDORES Y GRID SYSTEM
   ========================================================================== */

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

.section {
  padding: 5rem 0;
}

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

/* Grids Específicos */
.data-grid, .div-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .facilitadores-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .equipo-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   4. COMPONENTES INTERACTIVOS (Botones y Tarjetas)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--trans);
  border: none;
}

.btn-navy {
  background-color: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--text-main);
  color: var(--white);
}

/* Data Cards (Usadas en secciones de números) */
.data-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow);
}

.data-card .data-val {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.data-card .data-lbl {
  font-size: 0.95rem;
  color: var(--slate);
}

/* Division Cards */
.div-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--trans);
}

.div-card.aqueos { border-top: 6px solid var(--c-aqueos); }
.div-card.lares { border-top: 6px solid var(--c-lares); }

/* Animaciones de Tarjetas */
.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.active-focus {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

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

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.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: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--c-gold);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}

/* Hamburger y Menu Mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--navy);
  transition: var(--trans);
}

.mobile-nav {
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-150%);
  transition: transform 0.4s ease;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ==========================================================================
   6. FORMULARIOS (Contacto, LARES y AQUEOS)
   ========================================================================== */

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

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background: var(--white);
  color: var(--navy);
  transition: var(--trans);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Cuestionarios Interactivos (Termómetros) */
.lares-thermometer {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.lares-question {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-main);
}

.lq-label {
  display: block;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.lares-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lares-options label {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--trans);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lares-options input[type="radio"] {
  display: none;
}

.lares-options label:hover {
  background: #edf2f7;
}

.lares-options label.is-checked {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ==========================================================================
   7. ANIMACIONES (Reveal)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   8. FOOTER Y FLOTANTES
   ========================================================================== */

#site-footer {
  background: var(--bg-main);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-info {
  color: var(--slate);
  margin-bottom: 2rem;
}

.footer-legal {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #94a3b8;
}

.footer-legal a:hover {
  color: var(--c-gold);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 100;
  transition: var(--trans);
}

.whatsapp-float svg {
  fill: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}