/* === ESTILOS GLOBALES PARA WARMI AMTS === */
body {
    font-family: 'Lato', sans-serif;
    background-color: #FEFBF6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}
.header-gradient {
    background-image: linear-gradient(to right, #DA291C, #FFC72C, #007A33);
}
.nav-link {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/fondo.jpg');
    background-size: cover;
    background-position: center;
}
.modal-bg {
    background-color: rgba(0,0,0,0.6);
}
.content-section {
    padding-top: 100px;
    padding-bottom: 50px;
}
.news-section-bg {
    background-color: #f7fafc;
}

/* === BOTONES FLOTANTES === */
.floating-socials {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.social-icon {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icon:hover {
    background-color: #DA291C;
    padding-right: 20px;
}
.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}
.floating-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.floating-whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
}
.floating-whatsapp-btn .whatsapp-icon-svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* === SECCIÓN LLAMADA A LA ACCIÓN (VIOLENCIA) === */
.cta-violence-section {
    background-color: #DA291C;
    color: white;
    padding: 4rem 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* === MENÚ DESPLEGABLE === */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown .dropbtn {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding-top: 0.5rem; 
  padding-bottom: 0.5rem;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 240px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: #ddd;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropbtn {
  color: #fef08a;
}

/* === CARRUSEL DE NOTICIAS === */
.perspective-carousel-container {
    perspective: 1000px;
    position: relative;
}
.carousel-item {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 25%;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0s 0.25s;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: block;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.carousel-item .item-header {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    pointer-events: none;
}
.carousel-item.active { transform: translateX(0) scale(1); opacity: 1; z-index: 10; }
.carousel-item.prev { transform: translateX(-50%) scale(0.8) rotateY(45deg); opacity: 0.7; z-index: 5; }
.carousel-item.next { transform: translateX(50%) scale(0.8) rotateY(-45deg); opacity: 0.7; z-index: 5; }
.carousel-item.hidden-prev { transform: translateX(-100%) scale(0.6) rotateY(45deg); opacity: 0; z-index: 1; }
.carousel-item.hidden-next { transform: translateX(100%) scale(0.6) rotateY(-45deg); opacity: 0; z-index: 1; }
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.carousel-nav-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}
.carousel-nav-btn.prev { left: 0px; }
.carousel-nav-btn.next { right: 0px; }
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
    background-color: #DA291C;
    transform: scale(1.2);
}

/* === PÁGINA SOBRE NOSOTRAS (EQUIPO) === */
.team-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.team-photo-frame {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    padding: 5px;
    background: linear-gradient(45deg, #DA291C, #FFC72C, #007A33);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.team-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

/* === VIDEO RESPONSIVE (MATERIAL AUDIOVISUAL) === */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
}
.aspect-h-9 {
    height: 0;
}
.aspect-w-16 iframe, .aspect-h-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* === ESTILOS PARA LAS NUEVAS TARJETAS DE PROGRAMA (V2) === */

.program-card-v2 {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Para que la imagen respete los bordes redondeados */
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Quita el subrayado del enlace */
    color: inherit; /* Hereda el color del texto normal */
}

.program-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.program-card-img {
    width: 100%;
    height: 180px; /* Altura fija para la imagen */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
}

.program-card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Hace que este contenedor crezca para ocupar el espacio */
    display: flex;
    flex-direction: column;
}

.program-card-content h3 {
    color: #b91c1c; /* Color rojo oscuro para el título */
}

.program-card-btn {
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
    padding: 0.6rem 1.5rem;
    background-color: #DA291C; /* Color rojo principal de la marca */
    color: white;
    font-weight: bold;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
    display: inline-block; /* Para que el padding funcione bien */
    align-self: center; /* Centra el botón horizontalmente */
}

.program-card-v2:hover .program-card-btn {
    background-color: #b91c1c; /* Rojo más oscuro al pasar el mouse */
}
/* === ESTILOS PARA LA TARJETA DE PROGRAMA ESPECIAL (BORDE DORADO ANIMADO) === */

/* Define la animación de rotación para el borde */
@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Contenedor de la tarjeta especial */
.program-card-special {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Oculta las partes del borde que se salen */
}

/* El borde animado creado con un pseudo-elemento ::before */
.program-card-special::before {
    content: '';
    position: absolute;
    top: -50%; 
    left: -50%;
    width: 200%;
    height: 200%;
    
    /* * Creamos un degradado cónico. Es como un pastel con diferentes colores.
     * La mayor parte es transparente, excepto por un pequeño segmento dorado.
     * Al rotar este "pastel" gigante, el segmento dorado se mueve alrededor del borde.
    */
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 75%,
        #FFD700 95%, /* Un dorado brillante */
        #B8860B 100% /* Un dorado más oscuro para el final del brillo */
    );
    
    /* Aplica la animación de rotación */
    animation: rotate-border 6s linear infinite;

    z-index: -1; /* Coloca el borde detrás de la tarjeta */
}
