/* ==========================================================================
   GRAJAL FELINO - SISTEMA DE DISEÑO & ESTILOS GLOBALES
   Paleta de Colores: Opción A (Tierras, Verdes Oliva y Acentos Ámbar)
   ========================================================================== */

/* Importación de Fuentes Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS - Configuración del Tema */
:root {
  /* Colores Principales */
  --primary-hsl: 139, 17%, 37%;
  --primary: hsl(var(--primary-hsl)); /* Verde Oliva Fuerte */
  --primary-light: hsl(139, 17%, 47%);
  --primary-dark: hsl(139, 17%, 26%);
  
  --secondary-hsl: 14, 39%, 52%;
  --secondary: hsl(var(--secondary-hsl)); /* Terracota / Tierra */
  --secondary-light: hsl(14, 39%, 62%);
  --secondary-dark: hsl(14, 39%, 40%);
  
  --accent-hsl: 32, 95%, 44%;
  --accent: hsl(var(--accent-hsl)); /* Ámbar Cálido */
  --accent-hover: hsl(32, 95%, 36%);
  --accent-light: hsl(32, 95%, 90%);

  /* Neutros */
  --bg-main: #FAF8F5; /* Blanco cálido / Hueso premium */
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-main: #2C3531; /* Charcoal profundo */
  --text-muted: #5E6662;
  --border-color: rgba(78, 110, 88, 0.15);
  --border-glass: rgba(255, 255, 255, 0.6);
  
  /* Estados */
  --success: #3E8E75;
  --warning: #D97706;
  --danger: #BE123C;

  /* Fuentes */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sombras Modernas (Soft & Elegant) */
  --shadow-sm: 0 2px 4px rgba(44, 53, 49, 0.04);
  --shadow-md: 0 8px 30px rgba(44, 53, 49, 0.06);
  --shadow-lg: 0 20px 40px rgba(44, 53, 49, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(78, 110, 88, 0.08);

  /* Transiciones y Bordes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   2. COMPONENTES GLOBALES (Botones, Tarjetas, Badges)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: rgba(78, 110, 88, 0.08);
  color: var(--primary-dark);
}

.btn-tertiary:hover {
  background-color: rgba(78, 110, 88, 0.15);
  transform: translateY(-2px);
}

/* Tarjetas Glassmorphism */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 110, 88, 0.25);
}

/* Badges / Etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: rgba(78, 110, 88, 0.1);
  color: var(--primary-dark);
}

.badge-secondary {
  background-color: rgba(178, 110, 89, 0.1);
  color: var(--secondary-dark);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* ==========================================================================
   3. NAVEGACIÓN (Navbar)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(78, 110, 88, 0.08);
}

.header.scrolled {
  background-color: #FAF8F5;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.nav-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.nav-brand span {
  display: flex;
  flex-direction: column;
}

.nav-brand .brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.5rem;
}

/* ==========================================================================
   4. SECCIÓN HERO (Inicio)
   ========================================================================== */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(78, 110, 88, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(178, 110, 89, 0.05) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.hero-title span {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(217, 119, 6, 0.15);
  z-index: -1;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 10s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

/* Floating Card / Badge en Hero */
.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 260px;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-icon {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-floating-text h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.hero-floating-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. SECCIONES COMUNES (Misión, CER, Voluntariado, etc.)
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background-color: #F1ECE6; /* Gris-tierra súper suave */
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-title {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grid de Estadísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.stat-number {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid de Características / Servicios */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon-box {
  background-color: rgba(78, 110, 88, 0.08);
  color: var(--primary);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: rotate(8deg);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   6. PÁGINA: QUIÉNES SOMOS & GRAJAL DE CAMPOS
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-stack {
  position: relative;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 1rem;
}

.about-img-main {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 400px;
  object-fit: cover;
}

.about-img-sub {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 250px;
  object-fit: contain;
  align-self: flex-end;
}

.about-heritage-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, #FAF6EE 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.heritage-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.heritage-desc {
  margin-bottom: 1.5rem;
}

.heritage-logo-contrast {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.heritage-logo-contrast img {
  max-width: 220px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.heritage-logo-contrast img:hover {
  transform: scale(1.03);
}

.heritage-logo-caption {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-dark);
  text-align: center;
}

/* ==========================================================================
   7. PÁGINA: MÉTODO CER (Colonias Felinas)
   ========================================================================== */
.cer-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.cer-step-card {
  position: relative;
  padding: 3rem 2rem 2rem 2rem;
}

.cer-step-num {
  position: absolute;
  top: -24px;
  left: 2rem;
  background-color: var(--secondary);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(178, 110, 89, 0.3);
}

.cer-step-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.cer-step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cer-info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 6rem;
}

.cer-info-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: 480px;
  object-fit: contain;
  background-color: rgba(78, 110, 88, 0.03);
  width: 100%;
}

.cer-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cer-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.cer-list-item svg {
  color: var(--success);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   8. PÁGINA: COLABORA (Donaciones, Teaming, Voluntariado)
   ========================================================================== */
.colabora-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.colabora-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.colabora-header {
  margin-bottom: 1.5rem;
}

.colabora-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.colabora-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

.colabora-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.colabora-details {
  background-color: rgba(78, 110, 88, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.colabora-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(78, 110, 88, 0.15);
  padding-bottom: 0.5rem;
}

.colabora-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.colabora-detail-label {
  font-weight: 600;
  color: var(--text-main);
}

.colabora-detail-val {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.copy-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* ==========================================================================
   9. PÁGINA: CONTACTO
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  background-color: rgba(178, 110, 89, 0.08);
  color: var(--secondary);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.contact-info-text p, .contact-info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-text a:hover {
  color: var(--primary);
}

/* Formulario Moderno */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(78, 110, 88, 0.1);
}

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

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: rgba(62, 142, 117, 0.1);
  color: var(--success);
  border: 1px solid rgba(62, 142, 117, 0.2);
}

.form-status.error {
  display: block;
  background-color: rgba(190, 18, 60, 0.1);
  color: var(--danger);
  border: 1px solid rgba(190, 18, 60, 0.2);
}

/* Mapa */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   10. PIE DE PÁGINA (Footer)
   ========================================================================== */
.footer {
  background-color: var(--neutral-dark);
  color: #E2E8F0;
  padding: 80px 0 30px 0;
  border-top: 4px solid var(--secondary);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
}

.footer-brand-title img {
  height: 44px;
  width: 44px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-icon {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-link a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748B;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   11. ANIMACIONES & EFECTOS
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   12. DISEÑO RESPONSIVO (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  
  .hero-grid, .about-split, .heritage-grid, .cer-info-split, .colabora-grid, .contact-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image-wrapper {
    order: -1;
  }
  
  .hero-image {
    height: 380px;
  }
  
  .about-image-stack {
    margin-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 2rem;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .cer-steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Clases de Utilidad de Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
