/* SECCIÓN MEDIOS */
.medios-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f5bb8 0%, #5d8ee2 100%);
    background-attachment: fixed;
}

.medios-titulo {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.medios-titulo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f4a15b, #6ea8e8);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(244, 161, 91, 0.35);
}

/* PARALLAX CONTAINER */
.section.parallax {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 600px;
    overflow: hidden;
}

.section.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 67, 143, 0.92) 0%,
        rgba(58, 105, 189, 0.86) 50%,
        rgba(20, 71, 147, 0.88) 100%);
    z-index: 1;
}

.section.parallax::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(74, 173, 255, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* FLEXSLIDER STYLES */
.fslider {
    position: relative;
    z-index: 2;
}

.flexslider {
    border: none;
    background: transparent;
    margin: 0;
    box-shadow: none;
}

.slider-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    gap: 30px;
    padding: 0 15px;

    /* CENTRADO REAL */
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}


/* CONTENIDO DE LAS SLIDES */
.testi-content {
    padding: 35px 20px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    animation: slideInFromBottom 1s ease-out;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testi-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* LOGO */
.testi-content img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.1),
        0 8px 25px rgba(255,255,255,0.2),
        0 0 30px rgba(74, 173, 255, 0.3);
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 3px;
    position: relative;
}

.testi-content img::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #d66800, #1f3d74, #0f1a14);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testi-content img:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.2),
        0 12px 35px rgba(255,255,255,0.3),
        0 0 40px rgba(74, 173, 255, 0.5);
}

.testi-content img:hover::before {
    opacity: 1;
}

/* TÍTULO DE LA NOTICIA */
.testi-content p {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff !important;
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
    position: relative;
}

.testi-content p::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -14px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.25);
    font-family: Georgia, serif;
}

/* META INFO (MEDIO Y FECHA) */
.testi-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.testi-meta a {
    color: #ff9430;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.testi-meta a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d66800, #1f3d74);
    transition: width 0.3s ease;
}

.testi-meta a:hover {
    color: #ffb56d;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(214, 104, 0, 0.35);
}

.testi-meta a:hover::after {
    width: 100%;
}

.testi-meta span.sin-enlace {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 1;
}

.testi-meta span {
    font-size: 14px;
    opacity: 0.8;
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

/* FLECHAS DE NAVEGACIÓN */
.flex-direction-nav a {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 50%;
    color: #333;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    margin: -30px 0 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.flex-direction-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4aadff, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.flex-direction-nav a:hover {
    background: transparent;
    color: white;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 173, 255, 0.4);
}

.flex-direction-nav a:hover::before {
    opacity: 1;
}

.flex-direction-nav .flex-prev {
    left: 30px;
}

.flex-direction-nav .flex-next {
    right: 30px;
}

/* ANIMACIONES */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 173, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 173, 255, 0.6);
    }
}

/* SIN IMPACTOS */
.sin-impacto {
    font-size: 18px;
    color: #ffffff;
    opacity: 1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .medios-titulo {
        font-size: 32px;
        margin-bottom: 40px;
        letter-spacing: 1.5px;
    }

    .slider-wrap {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .testi-content {
        padding: 30px 18px;
        min-height: 340px;
    }

    .testi-content img {
        width: 70px !important;
        height: 70px !important;
    }

    .testi-content p {
        font-size: 22px;
    }

    .testi-meta a,
    .testi-meta span {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .section.parallax {
        background-attachment: scroll;
    }

    .medios-titulo {
        font-size: 28px;
        margin-bottom: 35px;
        padding: 0 20px;
        letter-spacing: 1px;
    }

    .medios-titulo::after {
        width: 60px;
        height: 2px;
    }

    .slider-wrap {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .testi-content {
        padding: 25px 15px;
        min-height: 320px;
        margin: 0;
    }

    .testi-content img {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 12px;
    }

    .testi-content p {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .testi-meta {
        gap: 10px;
        padding-top: 15px;
    }

    .testi-meta a,
    .testi-meta span {
        font-size: 14px;
    }

    .flex-direction-nav a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
    }

    .flex-direction-nav .flex-prev {
        left: 15px;
    }

    .flex-direction-nav .flex-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .medios-titulo {
        font-size: 24px;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
    }

    .medios-titulo::after {
        width: 50px;
        height: 2px;
    }

    .testi-content {
        padding: 20px 12px;
        height: 280px;
        margin: 0 4px;
    }

    .testi-content img {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 18px;
    }

    .testi-content p {
        font-size: 18px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .testi-content p::before {
        font-size: 40px;
        left: -15px;
        top: -5px;
    }

    .testi-meta {
        gap: 8px;
        padding-top: 15px;
    }

    .testi-meta a,
    .testi-meta span {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .flex-direction-nav a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }

    .flex-direction-nav .flex-prev {
        left: 10px;
    }

    .flex-direction-nav .flex-next {
        right: 10px;
    }
}