/* ============================================
   FUENTES360° — Hoja de estilos principal
   Colores: Manual de Marca Fuentes360°
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables de marca ---- */
:root {
  --azul:    #243B5A;
  --naranja: #D96C10;
  --marfil:  #F7F2E8;
  --texto:   #3D3D3A;
  --dorado:  #B68A2F;
  --purpura: #6B4BA3;
  --verde:   #2F6F62;
  --blanco:  #FFFFFF;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--texto);
  background: var(--marfil);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--blanco);
  border-bottom: 3px solid var(--azul);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo-text {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--azul);
}
.logo-text span { color: var(--naranja); }

/* ---- Navegación desktop ---- */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--azul);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--naranja);
  border-bottom-color: var(--naranja);
}

/* ---- Menú hamburguesa (móvil) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--blanco);
  padding: 1rem 5%;
  border-top: 1px solid #eee;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--azul);
  border-bottom: 1px solid #f0ece3;
}
.mobile-menu a:hover { color: var(--naranja); }
.mobile-menu.open { display: block; }

/* ============================================
   SECCIONES — utilidades
   ============================================ */
.section { padding: 80px 5%; }
.section-sm { padding: 60px 5%; }
.section-lg { padding: 100px 5%; }
.container { max-width: 1100px; margin: 0 auto; }
.section-bg-azul   { background: var(--azul); }
.section-bg-marfil { background: var(--marfil); }
.section-bg-blanco { background: var(--blanco); }

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.text-blanco  { color: var(--blanco); }
.text-azul    { color: var(--azul); }
.text-naranja { color: var(--naranja); }
.text-texto   { color: var(--texto); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  border: 2px solid transparent;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-naranja {
  background: var(--naranja);
  color: var(--blanco);
}
.btn-azul {
  background: var(--azul);
  color: var(--blanco);
}
.btn-outline {
  background: transparent;
  border-color: var(--blanco);
  color: var(--blanco);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--azul);
  padding: 100px 5%;
  text-align: center;
}
.hero h1 {
  color: var(--blanco);
  margin-bottom: 1rem;
}
.hero p {
  color: rgba(247,242,232,0.88);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ============================================
   LÍNEAS ESTRATÉGICAS (4 columnas)
   ============================================ */
.lineas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.linea-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.linea-card h3 {
  color: var(--azul);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.linea-card p {
  color: var(--texto);
  font-size: 0.92rem;
  line-height: 1.6;
}
.linea-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

/* ============================================
   SECCIÓN DOS COLUMNAS
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col h2 { color: var(--azul); margin-bottom: 1rem; }
.two-col p  { color: var(--texto); margin-bottom: 1.5rem; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--azul);
  text-align: center;
  padding: 80px 5%;
}
.cta-banner h2 {
  color: var(--blanco);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  color: rgba(247,242,232,0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--naranja);
}
.contact-value {
  font-size: 1rem;
  color: var(--texto);
  font-weight: 500;
}

/* ============================================
   RECURSOS
   ============================================ */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.recurso-card {
  background: var(--blanco);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--azul);
  transition: box-shadow 0.2s;
}
.recurso-card:hover { box-shadow: 0 4px 20px rgba(36,59,90,0.12); }
.recurso-card h3 {
  color: var(--azul);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.recurso-card p {
  font-size: 0.88rem;
  color: var(--texto);
  margin-bottom: 1rem;
}
.recurso-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--marfil);
  color: var(--azul);
  border: 1px solid var(--azul);
}
.coming-soon {
  text-align: center;
  padding: 60px 20px;
  color: var(--texto);
  opacity: 0.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--azul);
  color: rgba(247,242,232,0.75);
  text-align: center;
  padding: 2rem 5%;
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--naranja);
}

/* ============================================
   SEPARADOR DECORATIVO
   ============================================ */
.divider {
  width: 48px;
  height: 3px;
  background: var(--naranja);
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .lineas-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .recursos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .lineas-grid { grid-template-columns: 1fr; }
  .recursos-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 6%; }
  .section { padding: 60px 6%; }
  .section-lg { padding: 70px 6%; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
}

/* ============================================
   TARJETAS DE NAVEGACIÓN (homepage)
   ============================================ */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.nav-card {
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 20px rgba(36,59,90,0.10);
  transition: transform .2s, box-shadow .2s;
}
.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(36,59,90,0.16);
}
.nav-card-header {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.nav-card-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: rgba(247,242,232,.7);
}
.nav-card-title {
  font-family: 'Lora', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
}
.nav-card-body {
  background: var(--blanco);
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.nav-card-desc {
  font-size: .97rem;
  color: var(--texto);
  line-height: 1.65;
}
.nav-card-link {
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ============================================
   CONTACTO SUTIL (todas las páginas)
   ============================================ */
.contact-line {
  text-align: center;
  padding: 1.25rem 5%;
  border-top: 1px solid #e8e4da;
  background: var(--marfil);
  font-size: .88rem;
  color: #888;
}
.contact-line a {
  color: var(--azul);
  font-weight: 500;
}
.contact-line a:hover { color: var(--naranja); }

@media (max-width: 640px) {
  .nav-cards { grid-template-columns: 1fr; }
  .nav-card-title { font-size: 1.3rem; }
  .nav-card-header { padding: 1.5rem; }
  .nav-card-body { padding: 1.25rem 1.5rem 1.5rem; }
}
