/* =========================
   VARIABLES DE TEMA
========================== */
:root {
  --primary-color: #036160;
  --primary-dark: #024a4a;
  --primary-light: #0a7e7d;
  --secondary-color: #abd3c1;
  --secondary-dark: #8abfaa;
  --secondary-light: #c0e0d1;
  --accent-color: #e74c3c;
  --accent-dark: #c0392b;
  --accent-light: #f17567;
  --background-color: #f5f5f0;
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-gray: #f0f0f0;
  --medium-gray: #cccccc;
  --dark-gray: #555555;
  
  /* Animations & Transitions */
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;
  --easing: cubic-bezier(0.25, 0.1, 0.25, 1);
  
  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-circle: 50%;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-inset: inset 0 1px 4px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  /* Layout */
  --container-padding: 1.5rem;
  --section-spacing: 5rem;
  --grid-gap: 2rem;
}

/* =========================
   RESETEO Y GLOBALES
========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-medium) var(--easing);
}

a:hover {
  color: var(--primary-color);
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* AOS Animations */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* =========================
   BOTONES
========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-medium) var(--easing);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-medium) var(--easing);
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn i {
  transition: transform var(--transition-medium) var(--easing);
}

.btn:hover i {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* =========================
   HEADER Y NAVEGACIÓN
========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: transform var(--transition-medium) var(--easing), 
              box-shadow var(--transition-medium) var(--easing);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header.hidden {
  transform: translateY(-100%);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

.site-title span {
  display: block;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.logo {
  width: 140px;
  height: auto;
  transition: transform var(--transition-medium) var(--easing);
}

.logo:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;  /* Centrado vertical */
  align-items: center;      /* Centrado horizontal */
  width: 30px;
  height: 30px;             /* Aumentado de 20px a 30px para más área de toque */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  position: relative;       /* Añadido para posicionamiento absoluto de las líneas */
}

.menu-icon {
  display: block;
  position: relative;
  width: 24px;              /* Reducido para consistencia visual */
  height: 2px;
  background-color: var(--primary-color);
  transition: background-color var(--transition-fast) var(--easing);
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;                  /* Asegura alineación horizontal */
  width: 24px;              /* Mismo ancho que la línea principal */
  height: 2px;
  background-color: var(--primary-color);
  transition: transform var(--transition-fast) var(--easing);
}

.menu-icon::before {
  top: -7px;               /* Ajustado para mejor espaciado */
}


.menu-icon::after {
  bottom: -7px;            /* Ajustado para mejor espaciado */
}

/* Estilos para estado activo (cuando el menú está abierto) */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}
.menu-toggle.active .menu-icon::before {
  transform: translateY(7px) rotate(45deg);  /* Ajustado al nuevo espaciado */
}

.menu-toggle.active .menu-icon::after {
  transform: translateY(-7px) rotate(-45deg); /* Ajustado al nuevo espaciado */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;          /* Se muestra solo en móvil */
  }
}
.nav-link {
  position: relative;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: color var(--transition-medium) var(--easing);
}

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

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

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

@media (max-width: 992px) {
  .navbar {
    height: 70px;
  }
  
  .site-title {
    font-size: 1.25rem;
  }
  
  .site-title span {
    font-size: 0.875rem;
  }
  
  .logo {
    width: 120px;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9375rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-medium) var(--easing);
    overflow-y: auto;
    z-index: 99;
  }
  
  .nav-links.open {
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 60px;
  }
  
  .site-title {
    font-size: 1.125rem;
  }
  
  .site-title span {
    font-size: 0.75rem;
  }
  
  .logo {
    width: 100px;
  }
  
  .nav-links {
    top: 60px;
    width: 100%;
    height: calc(100vh - 60px);
    padding: 1.5rem;
  }
}

/* =========================
   HERO SECTION
========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(3, 97, 96, 0.3) 0%, rgba(171, 211, 193, 0.3) 100%);
  mix-blend-mode: overlay;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
  position: relative;
}

.hero-info {
  flex: 1;
  text-align: left;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 30%;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--white);
  position: relative;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-style: italic;
}

.hero-sub2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
}

.hero-photo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.photo-frame {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: var(--border-radius-circle);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-slow) var(--easing),
              box-shadow var(--transition-slow) var(--easing);
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-photo-wrapper:hover .photo-frame {
  transform: scale(1.02) translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 12px rgba(255, 255, 255, 0.15);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) var(--easing);
}

.hero-action {
  flex: 1;
  text-align: right;
  max-width: 30%;
}

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-sub {
    font-size: 1.375rem;
  }
  
  .hero-sub2 {
    font-size: 1.125rem;
  }
  
  .photo-frame {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 992px) {
  .hero {
    margin-top: 70px;
    height: 90vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-sub {
    font-size: 1.25rem;
  }
  
  .hero-sub2 {
    font-size: 1rem;
  }
  
  .photo-frame {
    width: 250px;
    height: 250px;
  }
  
  .hero-btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: 60px;
    height: auto;
    padding: 4rem 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-info {
    max-width: 100%;
    text-align: center;
    order: 2;
  }
  
  .hero-photo-wrapper {
    order: 1;
  }
  
  .photo-frame {
    width: 200px;
    height: 200px;
  }
  
  .hero-action {
    max-width: 100%;
    text-align: center;
    order: 3;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-sub {
    font-size: 1.125rem;
  }
  
  .hero-sub2 {
    font-size: 0.9375rem;
  }
  
  .photo-frame {
    width: 180px;
    height: 180px;
  }
  
  .hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* =========================
   QUOTE SECTION
========================== */
.quote-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.quote-section::before,
.quote-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-circle);
}

.quote-section::before {
  top: -150px;
  left: -150px;
}

.quote-section::after {
  bottom: -150px;
  right: -150px;
}

.quote {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
}

.quote-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  display: block;
}

.quote p {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quote footer {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

@media (max-width: 992px) {
  .quote-section {
    padding: 4rem 0;
  }
  
  .quote p {
    font-size: 1.5rem;
  }
  
  .quote-icon {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .quote-section {
    padding: 3.5rem 0;
  }
  
  .quote p {
    font-size: 1.375rem;
  }
  
  .quote-icon {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .quote-section {
    padding: 3rem 0;
  }
  
  .quote p {
    font-size: 1.25rem;
  }
  
  .quote-icon {
    font-size: 1.5rem;
  }
  
  .quote footer {
    font-size: 0.875rem;
  }
}

/* =========================
   DERNIER ARTICLE SECTION
========================== */
.dernier-article-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.dernier-article-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.dernier-article-container .blog-preview {
  max-width: 700px;
  margin-bottom: 0;
}

.dernier-article-footer {
  text-align: center;
  margin-top: 2rem;
}

.dernier-article-footer .blog-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.dernier-article-footer .blog-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .dernier-article-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 576px) {
  .dernier-article-section {
    padding: 3rem 0;
  }
}

/* =========================
   SERVICES SECTION
========================== */
.services-container {
  padding: 5rem 0;
  background-color: var(--background-color);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

.services-card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium) var(--easing),
              box-shadow var(--transition-medium) var(--easing);
}

.services-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.services-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.card-content {
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content .services-btn {
  margin-top: auto;
}

.services-card h2 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.services-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.services-card p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.8;
}

.services-btn {
  margin-top: 1rem;
  position: relative;
  z-index: 5;
}

/* Estilos específicos para las diferentes tarjetas */
.services-card.bienvenue {
  background-color: var(--white);
}

.services-card.detresse {
  background-color: var(--white);
}

.services-card.detresse::before {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

@media (max-width: 992px) {
  .services-container {
    padding: 4rem 0;
  }
  
  .services-card h2 {
    font-size: 1.75rem;
  }
  
  .services-card p {
    font-size: 1rem;
  }
  
  .card-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .services-container {
    padding: 3.5rem 0;
  }
  
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  .services-card + .services-card {
    margin-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .services-container {
    padding: 3rem 0;
  }
  
  .services-card h2 {
    font-size: 1.5rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
}

/* =========================
   HEAL THE WORLD SECTION
========================== */
.heal-world {
  padding: 5rem 0;
  background-color: #d0f4f3;
  background-image: linear-gradient(135deg, #d0f4f3 0%, #e1f9f2 100%);
  position: relative;
  overflow: hidden;
}

.heal-world::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/pattern-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.heal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.heal-info {
  flex: 1;
}

.heal-title {
  font-family: var(--font-secondary);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.heal-title .traduccion,
.heal-title .cancion,
.heal-title .artista {
  display: block;
}

.heal-title .traduccion {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.heal-title .cancion {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.heal-title .artista {
  font-size: 1.75rem;
  font-weight: 600;
  font-style: italic;
}

.video-container {
  flex: 1;
  position: relative;
}

.video-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium) var(--easing);
}

.video-wrap:hover {
  transform: scale(1.02);
}

.video-wrap video {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-lg);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-medium) var(--easing);
}

.video-wrap:hover .video-overlay {
  opacity: 1;
}

.video-overlay i {
  font-size: 5rem;
  color: var(--white);
  opacity: 0.9;
}

@media (max-width: 992px) {
  .heal-world {
    padding: 4rem 0;
  }
  
  .heal-content {
    gap: 2rem;
  }
  
  .heal-title .traduccion {
    font-size: 1.125rem;
  }
  
  .heal-title .cancion {
    font-size: 2.25rem;
  }
  
  .heal-title .artista {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .heal-world {
    padding: 3.5rem 0;
  }
  
  .heal-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .heal-info {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .heal-world {
    padding: 3rem 0;
  }
  
  .heal-title .traduccion {
    font-size: 1rem;
  }
  
  .heal-title .cancion {
    font-size: 1.75rem;
  }
  
  .heal-title .artista {
    font-size: 1.25rem;
  }
}

/* =========================
   SLIDER SECTION
========================== */
.slider-section {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
}

.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.slider {
  display: flex;
  transition: transform var(--transition-slow) var(--easing);
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  text-align: center;
  background-color: var(--primary-light);
  color: var(--white);
}

.slide p {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius-circle);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium) var(--easing);
  z-index: 2;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-circle);
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-medium) var(--easing);
}

.slider-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots .dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .slider-section {
    padding: 4rem 0;
  }
  
  .slide {
    padding: 3.5rem 2.5rem;
  }
  
  .slide p {
    font-size: 1.375rem;
  }
  
  .slider-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 768px) {
  .slider-section {
    padding: 3.5rem 0;
  }
  
  .slide {
    padding: 3rem 2rem;
  }
  
  .slide p {
    font-size: 1.25rem;
  }
  
  .slider-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .slider-section {
    padding: 3rem 0;
  }
  
  .slide {
    padding: 2.5rem 1.5rem;
  }
  
  .slide p {
    font-size: 1.125rem;
  }
  
  .slider-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }
}

/* =========================
   LINKS SECTION
========================== */
.links-section {
  padding: 5rem 0;
  background-color: var(--background-color);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: 2rem;
}

.link-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 200px;
  transition: transform var(--transition-medium) var(--easing),
              box-shadow var(--transition-medium) var(--easing);
}

.link-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.link-img {
  width: 100%;
  height: 100%;
}

.link-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium) var(--easing);
}

.link-card:hover .link-img img {
  transform: scale(1.05);
}

.link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity var(--transition-medium) var(--easing);
}

.link-card:hover .link-overlay {
  background: linear-gradient(to top, rgba(3, 97, 96, 0.8) 0%, rgba(3, 97, 96, 0.4) 100%);
}

.link-text {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.link-overlay i {
  color: var(--white);
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-medium) var(--easing);
}

.link-card:hover .link-overlay i {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .links-section {
    padding: 4rem 0;
  }
  
  .link-card {
    height: 180px;
  }
  
  .link-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .links-section {
    padding: 3.5rem 0;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .link-card {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .links-section {
    padding: 3rem 0;
  }
  
  .link-card {
    height: 180px;
  }
  
  .link-overlay {
    padding: 1rem;
  }
  
  .link-text {
    font-size: 0.9375rem;
  }
}

/* =========================
 TIRELIRE SECTION
========================== */
.tirelire-section {
padding: 3rem 0; /* Réduit de 4rem à 3rem */
background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
position: relative;
overflow: hidden;
}

.tirelire-section::before {
content: '';
position: absolute;
inset: 0;
background: url('images/pattern-bg.png') center/cover;
opacity: .05;
z-index: 0;
}

.tirelire-section .section-title {
color: var(--primary-color);
}

.tirelire-section .section-title::after {
background: var(--primary-color);
}

.tirelire-card {
position: relative;
z-index: 1;
background: var(--white);
max-width: 400px; /* Réduit de 500px à 450px */
margin: 0 auto;
padding: 2rem; /* Réduit de 2.5rem à 2rem */
border-radius: var(--border-radius-lg);
text-align: center;
box-shadow: var(--shadow-lg);
}

.tirelire-icon {
font-size: 2.25rem; /* Réduit de 2.5rem à 2.25rem */
color: var(--primary-color);
margin-bottom: 1.25rem; /* Réduit de 1.5rem à 1.25rem */
}

.tirelire-card h3 {
font: 700 1.6rem var(--font-secondary); /* Réduit de 1.75rem à 1.6rem */
color: var(--primary-color);
margin-bottom: .75rem; /* Réduit de 1rem à 0.75rem */
}

.tirelire-card p {
font-size: 1.1rem; /* Réduit de 1.125rem à 1.1rem */
margin-bottom: .5rem;
}

.twint-num {
font: 700 1.4rem sans-serif; /* Réduit de 1.5rem à 1.4rem */
color: #a528b1;
margin: .75rem 0; /* Réduit de 1rem à 0.75rem */
}

.qr-code {
width: 140px; /* Réduit de 150px à 140px */
height: 140px; /* Réduit de 150px à 140px */
margin: 1.25rem auto 0; /* Réduit de 1.5rem à 1.25rem */
border: 1px solid var(--light-gray);
padding: .5rem;
border-radius: var(--border-radius-sm);
}

/* Media queries simplifiées */
@media (max-width: 768px) {
.tirelire-section { padding: 2.5rem 0; } /* Réduit de 3rem à 2.5rem */
.tirelire-card { padding: 1.75rem; max-width: 400px; } /* Réduit padding et max-width */
.tirelire-icon { font-size: 1.9rem; } /* Réduit de 2rem à 1.9rem */
.tirelire-card h3 { font-size: 1.4rem; } /* Réduit de 1.5rem à 1.4rem */
.tirelire-card p { font-size: .95rem; } /* Réduit de 1rem à 0.95rem */
.twint-num { font-size: 1.25rem; } /* Réduit de 1.3rem à 1.25rem */
.qr-code { width: 120px; height: 120px; } /* Réduit de 130px à 120px */
}

@media (max-width: 576px) {
.tirelire-section { padding: 2rem 0; } /* Réduit de 2.5rem (hérité) à 2rem */
.tirelire-card { padding: 1.25rem; max-width: 350px; } /* Réduit davantage */
.twint-num { font-size: 1.2rem; } /* Légèrement réduit */
.qr-code { width: 110px; height: 110px; } /* Réduit davantage */
}

/* =========================
   CONTACT SECTION
========================== */
.contact-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 3rem;
}

.contact-info {
  padding: 2rem;
}

.contact-info h2 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  text-align: left;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.contact-list {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.contact-list li i {
  width: 2rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.contact-list li a {
  color: var(--primary-color);
  transition: color var(--transition-medium) var(--easing);
}

.contact-list li a:hover {
  color: var(--secondary-color);
}

.contact-note {
  display: flex;
  align-items: flex-start;
  background-color: var(--light-gray);
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-note i {
  margin-right: 0.75rem;
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.required {
  color: var(--accent-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius-md);
  background-color: var(--white);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-medium) var(--easing),
              box-shadow var(--transition-medium) var(--easing);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 97, 96, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--medium-gray);
}

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

.map-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
}

.map {
  width: 100%;
  height: 100%;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 1;
}

.address-card {
  display: flex;
  align-items: center;
  background-color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.address-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

.address-card p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
}

@media (max-width: 992px) {
  .contact-section {
    padding: 4rem 0;
  }
  
  .contact-info h2 {
    font-size: 2.25rem;
  }
  
  .contact-list li {
    font-size: 1rem;
  }
  
  .contact-note {
    font-size: 0.875rem;
  }
  
  .map-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3.5rem 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    padding: 0;
  }
  
  .contact-info h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .contact-info h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .map-container {
    height: 350px;
  }
  
  .map-overlay {
    bottom: 1.5rem;
    left: 1.5rem;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-list li {
    font-size: 0.9375rem;
  }
  
  .form-group label {
    font-size: 0.9375rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .map-overlay {
    bottom: 1rem;
    left: 1rem;
  }
  
  .address-card {
    padding: 0.75rem 1rem;
  }
  
  .address-card i {
    font-size: 1.25rem;
  }
  
  .address-card p {
    font-size: 0.875rem;
  }
}

/* =========================
   BLOG SECTION
========================== */
.blog-section {
  padding: 5rem 0;
  background-color: var(--background-color);
}

#latest-blogs {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.blog-preview {
  display: block;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium) var(--easing),
              box-shadow var(--transition-medium) var(--easing);
}

.blog-preview:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-preview img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-medium) var(--easing);
}

.blog-preview:hover img {
  transform: scale(1.03);
}

.blog-overlay {
  padding: 1.25rem;
  background: #f9f9f9;
  text-align: center;
}

.blog-preview:hover .blog-overlay {
  transform: translateY(0);
}

.blog-overlay span {
  font-size: 1.125rem;
  font-weight: 600;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium) var(--easing);
}

.blog-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-btn i {
  font-size: 1.25rem;
}

@media (max-width: 992px) {
  .blog-section {
    padding: 4rem 0;
  }
  
  #latest-blogs {
    padding: 1.5rem;
  }
  
  .blog-overlay span {
    font-size: 1rem;
  }
  
  .blog-btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 576px) {
  .blog-section {
    padding: 3rem 0;
  }
  
  #latest-blogs {
    padding: 1.25rem;
  }
  
  .blog-overlay {
    padding: 1rem;
  }
  
  .blog-overlay span {
    font-size: 0.9375rem;
  }
  
  .blog-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* =========================
   FOOTER
========================== */
.site-footer {
  padding: 3rem 0 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  text-align: left;
}

.footer-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  font-size: 1rem;
  opacity: 0.8;
}

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

.footer-links a {
  color: var(--white);
  font-size: 0.9375rem;
  opacity: 0.8;
  transition: opacity var(--transition-medium) var(--easing);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.5rem 0 1.25rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-title {
    font-size: 1.25rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer-links a {
    font-size: 0.875rem;
  }
  
  .footer-bottom p {
    font-size: 0.8125rem;
  }
}



/* =========================
   MODAL POPUPS - SOLUCIÓN SIN SCROLL
========================== */
.modal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 20px;
}

.modal-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-content {
  position: relative;
  background-color: var(--white);
  width: 96%;
  max-width: 600px;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.modal-popup.show .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-light);
  background: transparent;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.popup-close:hover {
  color: var(--accent-color);
}

.popup-content h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  padding-right: 30px;
}

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

.popup-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.popup-content p:last-child {
  margin-bottom: 0;
}

/* Fix específico para el modal "Pour toute détresse" */
#detresseMore .popup-content {
  max-width: 650px; /* Ligeramente más ancho */
}

#detresseMore .popup-content p {
  margin-bottom: 0.5rem; /* Espaciado más compacto entre párrafos */
}

/* Ajustes para pantallas medianas */
@media (max-width: 768px) {
  .popup-content {
    padding: 1.75rem;
  }
  
  .popup-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  .popup-content p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 576px) {
  .modal-popup {
    padding: 15px;
  }
  
  .popup-content {
    padding: 1.5rem;
  }
  
  .popup-close {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }
  
  .popup-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .popup-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  
  /* Ajuste especial para móviles en el modal de détresse */
  #detresseMore .popup-content {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  
  #detresseMore .popup-content p {
    margin-bottom: 0.4rem;
    line-height: 1.4;
  }
}



/* =========================
   BACK TO TOP BUTTON
========================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-medium) var(--easing);
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

/* =========================
   ANIMATIONS
========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.scale-in {
  animation: scaleIn 0.8s ease forwards;
}

/* Entrada con retraso */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* =========================
   UTILIDADES
========================== */
.hidden {
  display: none !important;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 2.5rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 2.5rem; }

/* =========================
   AOS Initialization Classes
========================== */
[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos="flip-up"] {
  transform: perspective(400px) rotateX(10deg);
}

[data-aos="flip-down"] {
  transform: perspective(400px) rotateX(-10deg);
}

[data-aos].aos-animate {
  transform: translateY(0) translateX(0) scale(1) rotateX(0);
}



#latest-posts {
  padding: 5rem 0;
  background-color: var(--white);
}

#ultimos-posts {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  flex-wrap: wrap;         /* Permite que se adapte en responsive */
  gap: var(--grid-gap);
  margin-top: 2rem;
}



.blog-preview {
  display: flex;
  flex-direction: row; /* horizontal en lugar de columna */
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 700px;
  height: 250px;
}



.blog-preview:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-preview img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid #eee;
}

.blog-preview:hover img {
  transform: scale(1.05);
}

.blog-preview .blog-overlay {
  padding: 1.5rem;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f9f9f9;
  text-align: left;
}

.blog-preview .blog-overlay span {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.blog-preview .blog-overlay p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  #latest-posts {
    padding: 3.5rem 0;
  }

  .blog-preview .blog-overlay span {
    font-size: 1.1rem;
  }

  .blog-preview .blog-overlay p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  #latest-posts {
    padding: 3rem 0;
  }

  .blog-preview {
    max-width: 100%;
  }
}


.blog-subtitle {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #444;
}

.blog-link {
  color: var(--primary-color, #036160);
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
}

.blog-link:hover {
  text-decoration: underline;
}


@media (max-width: 576px) {
  .blog-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    line-height: 1.5;
  }

  .blog-link {
    display: inline-block;
    margin-top: 0.5rem;
    margin-left: 0;
    font-size: 1rem;
  }

  .blog-preview {
    flex-direction: column;
    height: auto;
    max-width: 100%;
  }

  .blog-preview img {
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .blog-preview .blog-overlay {
    width: 100%;
    padding: 1rem 1.25rem;
    text-align: center;
  }

  .blog-preview .blog-overlay span {
    font-size: 1.05rem;
  }

  .blog-preview .blog-overlay p {
    font-size: 0.95rem;
  }
}



.hero-video {
  pointer-events: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
  display: none !important;
}
