﻿/* ==========================================================
   SISTEMA CORPORATIVO ALMERÍA BLUE — VARIABLES OFICIALES
========================================================== */
:root {
    --blue-primary: #2d34bb; /* Azul profundo */
    --blue-med: #0080c3; /* Azul mediterráneo */
    --blue-soft: #5ec1c9; /* Turquesa suave */
    --green-sea: #6dbe99; /* Verde mar */
    --blue-text: #003558; /* Azul institucional */
    --white: #ffffff;
}


/* ==========================================================
   BASE TIPOGRÁFICA GENERAL
========================================================== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--blue-text);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}


/* ==========================================================
   NAVBAR
========================================================== */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 3px solid var(--blue-primary);
}

.navbar-brand {
    color: var(--blue-primary) !important;
    font-weight: 700;
}

.nav-link {
    color: var(--blue-text) !important;
    font-weight: 600;
}

    .nav-link:hover {
        color: var(--blue-med) !important;
    }


/* ==========================================================
   HERO SECTION (banner corporativo)
========================================================== */
.hero {
    background-image: url('./img/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0, 53, 88, 0.20), rgba(0, 53, 88, 0.55) );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 12px;
}



/* ==========================================================
   BOTONES CORPORATIVOS
========================================================== */
.btn-primary {
    background-color: var(--blue-med) !important;
    border-color: var(--blue-med) !important;
    color: var(--white);
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: var(--blue-primary) !important;
        border-color: var(--blue-primary) !important;
    }

.btn-light {
    background-color: var(--white) !important;
    color: var(--blue-med) !important;
    font-weight: 200;
}

.btn-outline-light {
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    font-weight: 200;
}



/* ==========================================================
   ICON BOXES (Sección Qué Hacemos)
========================================================== */
.icon-box {
    padding: 25px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0px 3px 12px rgba(0,0,0,0.12);
    text-align: center;
}

    .icon-box img {
        height: 60px;
        margin-bottom: 15px;
    }

    .icon-box h5 {
        color: var(--blue-primary);
    }



/* ==========================================================
   TARJETAS DE NOTICIAS
========================================================== */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 3px 12px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--blue-primary);
    font-weight: 600;
}

.card-text {
    color: var(--blue-text);
}



/* ==========================================================
   SECCIONES CON COLORES CORPORATIVOS
========================================================== */
.section-blue-soft {
    background-color: var(--blue-soft);
}

.section-green {
    background-color: var(--green-sea);
}

.section-blue-med {
    background-color: var(--blue-med);
    color: var(--white);
}



/* ==========================================================
   PALETA VISUAL (opcional - muestra corporativa)
========================================================== */
.color-sample {
    height: 180px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    font-weight: 600;
}

/* ==========================================================
   SECCIÓN QUÉ HACEMOS — TARJETAS CORPORATIVAS
========================================================== */

.section-quehacemos {
    background-color: var(--white);
}

/* ==========================================================
   FICHAS / TARJETAS AL MISMO TAMAÑO
========================================================== */

.info-card {
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* <-- clave */
    min-height: 340px; /* <-- define la altura uniforme */
    box-shadow: 0px 4px 16px rgba(0,0,0,0.18);
}

    .info-card h4 {
        font-weight: 600;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .info-card p {
        font-size: 0.95rem;
        line-height: 1.45rem;
        color: var(--white);
        margin-top: auto; /* <-- empuja el texto para equilibrar */
    }

.info-icon {
    height: 60px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

/* Colores corporativos */
.card-blue-primary {
    background-color: var(--blue-primary);
}

.card-blue-med {
    background-color: var(--blue-med);
}

.card-blue-soft {
    background-color: var(--blue-soft);
}

.card-green-sea {
    background-color: var(--green-sea);
}

/* Hover */
.info-card:hover {
    transform: translateY(-6px);
    transition: 0.25s ease-in-out;
}



/* ==========================================================
   FOOTER CORPORATIVO
========================================================== */
.footer {
    background-color: var(--blue-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

    .footer a {
        color: var(--blue-soft);
        text-decoration: none;
    }

        .footer a:hover {
            color: var(--white);
        }



/* ==========================================================
   NAVBAR CORPORATIVA ALMERÍA BLUE
========================================================== */

.navbar-almeria {
    background-color: var(--white) !important;
    border-bottom: 4px solid var(--blue-primary);
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    color: var(--blue-primary) !important;
    font-weight: 700 !important;
    font-size: 1.25rem;
}

    .navbar-brand:hover {
        color: var(--blue-med) !important;
    }

/* ==========================
   ENLACES DEL MENÚ
========================== */

.main-menu .nav-link {
    color: var(--blue-text) !important;
    margin: 0 12px;
    position: relative;
    padding-bottom: 6px;
    font-size: 1.02rem;
    transition: color 0.3s ease-in-out;
}

    /* Hover suave: cambia color */
    .main-menu .nav-link:hover {
        color: var(--blue-med) !important;
    }


    /* ==========================
   SUBRAYADO ANIMADO
========================== */

    .main-menu .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0%;
        height: 3px;
        background-color: var(--blue-med);
        transition: width 0.3s ease-in-out;
        border-radius: 2px;
    }

    .main-menu .nav-link:hover::after {
        width: 100%;
    }

/* ==========================
   CAMBIO DE COLOR EN HOVER
   (Fondo suave estilo tarjeta)
========================== */

.main-menu .nav-link:hover {
    color: var(--blue-med) !important;
}

.main-menu li:hover .nav-link {
    background: rgba(0, 128, 195, 0.08); /* azul-med suave */
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
}

/* ==========================
   ESTILO ACTIVO (si quieres marcar sección)
========================== */

.main-menu .nav-link.active {
    color: var(--blue-primary) !important;
    font-weight: 700;
}

    .main-menu .nav-link.active::after {
        width: 100%;
        background-color: var(--blue-primary);
    }



/* ==========================================================
   QUÉ HACEMOS — TARJETAS PREMIUM
========================================================== */

.section-quehacemos {
    background-color: #ffffff;
}

/* Tarjeta base */
.qh-card {
    padding: 35px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: 260px;
    transition: 0.4s ease;
    border-top: 6px solid transparent;
}

    /* Hover */
    .qh-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0px 18px 35px rgba(0,0,0,0.22);
        cursor: pointer;
    }

/* ==========================================================
   GRADIENTES DIFERENTES PARA CADA TARJETA
========================================================== */

/* 1 – Azul turquesa vivo */
.qh-gradient-1 {
    background: linear-gradient(135deg, #2d34bb, #0080c3);
    background-size: 200% 200%;
    animation: qhGradientMove 12s ease infinite;
}

/* 2 – Azul mediterráneo intenso */
.qh-gradient-2 {
    background: linear-gradient(135deg, #0080c3, #5ec1c9);
    background-size: 200% 200%;
    animation: qhGradientMove 14s ease infinite;
}

/* 3 – Azul → verde mar (biotech) */
.qh-gradient-3 {
    background: linear-gradient(135deg, #5ec1c9, #6dbe99);
    background-size: 200% 200%;
    animation: qhGradientMove 16s ease infinite;
}

/* 4 – Acuicultura (verde mar → azul profundo) */
.qh-gradient-4 {
    background: linear-gradient(135deg, #6dbe99, #2d34bb);
    background-size: 200% 200%;
    animation: qhGradientMove 15s ease infinite;
}

/* 5 – Innovación portuaria (azul profundo → azul suave) */
.qh-gradient-5 {
    background: linear-gradient(135deg, #2d34bb, #5ec1c9);
    background-size: 220% 220%;
    animation: qhGradientMove 13s ease infinite;
}

/* 6 – Educación y cultura litoral (turquesa suave → verde claro) */
.qh-gradient-6 {
    background: linear-gradient(135deg, #5ec1c9, #6dbe99);
    background-size: 220% 220%;
    animation: qhGradientMove 15s ease infinite;
}

@keyframes qhGradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================
   GLASSMORPHISM AZUL
========================================================== */

.qh-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
}

    .qh-glass:hover {
        background: rgba(0, 53, 88, 0.40);
        box-shadow: 0px 0px 22px rgba(0,128,195,0.45);
    }

/* ==========================================================
   ICONOS GRANDES
========================================================== */

.icon-large i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: 0.3s ease;
    color: #ffffff;
}

.qh-card:hover .icon-large i {
    transform: scale(1.20);
}

/* ==========================================================
   TÍTULO SUBRAYADO
========================================================== */

.qh-card h4 {
    position: relative;
    margin-bottom: 14px;
}

    .qh-card h4::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0%;
        height: 3px;
        background: #ffffff;
        transition: width .3s ease-in-out;
        border-radius: 2px;
    }

.qh-card:hover h4::after {
    width: 40%;
}

/* ==========================================================
   ONDAS MARINAS
========================================================== */

.qh-card::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 200%;
    height: 45px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    animation: waveMotion 6s infinite ease-in-out;
    z-index: 1;
}

.qh-card::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: -20%;
    width: 230%;
    height: 55px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: waveMotion 10s infinite ease-in-out reverse;
    z-index: 2;
}

@keyframes waveMotion {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

/* scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }



/* ==========================================================
   SECCIÓN EQUIPO – TARJETAS CHALLENGE CORPORATIVAS
========================================================== */

.section-equipo {
    background-color: var(--white);
}

/* Tarjeta del equipo */
.team-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0px 4px 16px rgba(0,0,0,0.15);
    transition: 0.25s ease-in-out;
    border-top: 6px solid var(--blue-med);
    height: 100%;
}

    /* Hover con elevación corporativa */
    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: 0px 10px 22px rgba(0,0,0,0.20);
    }

/* Foto circular */
.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--blue-soft);
}

/* Nombre */
.team-name {
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 4px;
}

/* Rol */
.team-role {
    font-weight: 500;
    color: var(--blue-med);
    margin-bottom: 10px;
}

/* Frase descriptiva */
.team-quote {
    font-size: 0.95rem;
    color: var(--blue-text);
    font-style: italic;
}
/* ==========================================================
   SECCIÓN PROYECTOS Y ACTIVIDADES – CORPORATIVA
========================================================== */

/* ==========================================================
   TARJETAS PROYECTOS — HOVER CORPORATIVO PREMIUM
========================================================== */

/* ==========================================================
   PROYECTOS Y ACTIVIDADES — ESTILO PREMIUM ALMERÍA BLUE
========================================================== */

/* ==========================================================
   FIX DE CAPAS PARA TARJETAS CON IMAGEN
========================================================== */

/* Asegura que waves queden detrás */
.project-card::before,
.project-card::after {
    z-index: 1;
}

/* Overlay encima de waves, pero debajo del texto */
.project-image-card .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Texto siempre visible */
.project-image-card .content {
    position: relative;
    z-index: 5 !important;
    color: #ffffff !important;
}

    /* Ícono grande siempre visible */
    .project-image-card .content .icon-large i {
        color: #ffffff !important;
    }

.project-image-card .overlay {
    background: rgba(0, 53, 88, 0.45); /* prueba 0.35 si quieres más claro */
}

.project-image-card:hover .overlay {
    background: rgba(0, 53, 88, 0.60);
}

.project-image-card h4,
.project-image-card p {
    color: #ffffff !important;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.35); /* mejora la lectura */
}

.section-proyectos {
    background-color: #ffffff;
}

/* Tarjeta base */
.project-card {
    padding: 35px;
    border-radius: 16px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: 0.4s ease;
    border-top: 6px solid transparent;
}

    /* Hover premium */
    .project-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0px 18px 35px rgba(0,0,0,0.22);
        cursor: pointer;
    }

/* Aplicación de colores */
.card-blue-primary {
    background: var(--blue-primary);
}

.card-blue-med {
    background: var(--blue-med);
}

.card-blue-soft {
    background: var(--blue-soft);
}

.card-green-sea {
    background: var(--green-sea);
}

/* Borde superior animado */
.project-card:hover.card-blue-primary {
    border-color: var(--blue-soft);
}

.project-card:hover.card-blue-med {
    border-color: var(--blue-primary);
}

.project-card:hover.card-blue-soft {
    border-color: var(--blue-med);
}

.project-card:hover.card-green-sea {
    border-color: var(--blue-primary);
}

/* Iconos grandes */
.icon-large i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

.project-card:hover .icon-large i {
    transform: scale(1.15);
}

/* Subrayado animado */
.project-card h4 {
    position: relative;
    margin-bottom: 14px;
}

    .project-card h4::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0%;
        height: 3px;
        background: var(--white);
        transition: width 0.3s ease-in-out;
        border-radius: 2px;
    }

.project-card:hover h4::after {
    width: 35%;
}

/* Tarjetas con imagen */
.project-image-card {
    background-size: cover;
    background-position: center;
}

    .project-image-card:hover {
        background-size: 108%;
    }

    /* Overlay */
    .project-image-card .overlay {
        position: absolute;
        inset: 0;
        backdrop-filter: blur(3px);
        background: rgba(0, 53, 88, 0.45);
        transition: 0.3s ease;
    }

    .project-image-card:hover .overlay {
        background: rgba(0, 53, 88, 0.60);
    }

/* ==========================================================
   ONDAS MARINAS
========================================================== */
.project-card::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 200%;
    height: 45px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    animation: waveMotion 6s infinite ease-in-out;
}

.project-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20%;
    width: 230%;
    height: 55px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: waveMotion 10s infinite ease-in-out reverse;
}

@keyframes waveMotion {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ==========================================================
   MOTION GRADIENT
========================================================== */
.motion-gradient {
    background: linear-gradient( 120deg, var(--blue-primary), var(--blue-med), var(--blue-soft), var(--green-sea) );
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================
   SCROLL REVEAL ANIMATION
========================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }


/* ==========================================================
   ONDAS MARINAS BAJO TARJETAS
========================================================== */

.project-card {
    position: relative;
    overflow: hidden;
}

    /* Primera onda */
    .project-card::before {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 0;
        width: 200%;
        height: 45px;
        background: rgba(255,255,255,0.25);
        border-radius: 50%;
        animation: waveMotion 6s infinite ease-in-out;
    }

    /* Segunda onda */
    .project-card::after {
        content: "";
        position: absolute;
        bottom: -20px;
        left: -25%;
        width: 230%;
        height: 55px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        animation: waveMotion 10s infinite ease-in-out reverse;
    }

@keyframes waveMotion {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}


/* ==========================================================
   FORMACIÓN — TARJETAS GLASS PREMIUM + ONDAS + GLOW
========================================================== */

.section-formacion {
    background-color: #ffffff;
}

/* Tarjeta base */
.formacion-card {
    padding: 35px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: 0.4s ease;
    border-top: 6px solid transparent;
}

    /* Hover premium */
    .formacion-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0px 18px 35px rgba(0,0,0,0.22);
        cursor: pointer;
    }

/* ================================
   GLASSMORPHISM AZUL
================================ */
.formacion-glass {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
}

    /* Glow azul al hover */
    .formacion-glass:hover {
        background: rgba(0,53,88,0.35);
        box-shadow: 0 0 22px rgba(0,128,195,0.45);
    }

/* ================================
   BORDE GRADIENTE CORPORATIVO
================================ */
.formacion-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-med), var(--blue-soft), var(--green-sea) );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}

.formacion-card:hover::after {
    opacity: 1;
}

/* ================================
   ICONOS GRANDES ESTILO FLAT
================================ */
.icon-large i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

.formacion-card:hover .icon-large i {
    transform: scale(1.20);
}

/* ================================
   SUBRAYADO ANIMADO EN TÍTULOS
================================ */
.formacion-card h4 {
    position: relative;
    margin-bottom: 14px;
    color: #ffffff !important;
}

    .formacion-card h4::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0%;
        height: 3px;
        background: var(--white);
        transition: width .3s ease-in-out;
        border-radius: 2px;
    }

.formacion-card:hover h4::after {
    width: 40%;
}

/* ================================
   TEXTO
================================ */
.formacion-card p {
    font-size: 0.95rem;
    color: #ffffff !important;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.25);
}

/* ================================
   MOTION GRADIENT ALMERÍA BLUE
================================ */
.motion-gradient {
    background: linear-gradient( 120deg, var(--blue-primary), var(--blue-med), var(--blue-soft), var(--green-sea) );
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}

/* ================================
   ONDAS MARINAS BAJO TARJETA
================================ */
.formacion-card::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 200%;
    height: 45px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    animation: waveMotion 6s infinite ease-in-out;
    z-index: 1;
}

.formacion-card::after {
    z-index: 3;
}

.formacion-card::after {
    bottom: 0;
}

    .formacion-card::after:hover {
        opacity: 1;
    }

.formacion-card::before {
    bottom: -10px;
}

.formacion-card::after {
    animation-delay: -2s;
}

/* ==========================================================
   FORMACIÓN — TARJETAS PREMIUM (igual que QUÉ HACEMOS)
========================================================== */

.section-formacion {
    background-color: #ffffff;
}

/* Tarjeta base */
.formacion-card {
    padding: 35px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
    min-height: 260px;
    transition: 0.4s ease;
    border-top: 6px solid transparent;
}

    /* Hover premium */
    .formacion-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0px 18px 35px rgba(0,0,0,0.22);
        cursor: pointer;
    }

/* ==========================================================
   GRADIENTES DISTINTOS POR TARJETA (PALETA ALMERÍA BLUE)
========================================================== */

.formacion-gradient-1 {
    background: linear-gradient(135deg, #2d34bb, #0080c3);
    background-size: 200% 200%;
    animation: qhGradientMove 12s ease infinite;
}

.formacion-gradient-2 {
    background: linear-gradient(135deg, #0080c3, #5ec1c9);
    background-size: 200% 200%;
    animation: qhGradientMove 14s ease infinite;
}

.formacion-gradient-3 {
    background: linear-gradient(135deg, #5ec1c9, #6dbe99);
    background-size: 200% 200%;
    animation: qhGradientMove 16s ease infinite;
}

.formacion-gradient-4 {
    background: linear-gradient(135deg, #6dbe99, #2d34bb);
    background-size: 200% 200%;
    animation: qhGradientMove 15s ease infinite;
}

/* Movimiento del gradient */
@keyframes qhGradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================
   GLASSMORPHISM
========================================================== */

.qh-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
}

    .qh-glass:hover {
        background: rgba(0,53,88,0.40);
        box-shadow: 0 0 22px rgba(0,128,195,0.45);
    }

/* ==========================================================
   ICONOS GRANDES FLAT
========================================================== */
.icon-large i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

.formacion-card:hover .icon-large i {
    transform: scale(1.20);
}

/* ==========================================================
   TÍTULO CON SUBRAYADO ANIMADO
========================================================== */
.formacion-card h4 {
    margin-bottom: 14px;
    position: relative;
}

    .formacion-card h4::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: width .3s ease-in-out;
    }

.formacion-card:hover h4::after {
    width: 40%;
}

/* ==========================================================
   ONDAS MARINAS ANIMADAS
========================================================== */

.formacion-card::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 200%;
    height: 45px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    animation: waveMotion 6s infinite ease-in-out;
    z-index: 1;
}

.formacion-card::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: -20%;
    width: 230%;
    height: 55px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: waveMotion 10s infinite ease-in-out reverse;
    z-index: 2;
}

@keyframes waveMotion {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ==========================================================
   NOTICIAS Y AGENDA — ESTILO PREMIUM
========================================================== */

.section-news {
    background-color: #ffffff;
}

/* --------------------------
   TARJETAS DE NOTICIAS
--------------------------- */

.news-card {
    padding: 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: 280px;
    transition: .4s ease;
    border-top: 6px solid transparent;
}

    .news-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0px 18px 35px rgba(0,0,0,0.22);
    }

/* --------------------------
   GRADIENTES DIFERENTES
--------------------------- */

.news-gradient-1 {
    background: linear-gradient(135deg, #2d34bb, #0080c3);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

.news-gradient-2 {
    background: linear-gradient(135deg, #0080c3, #5ec1c9);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

.news-gradient-3 {
    background: linear-gradient(135deg, #5ec1c9, #6dbe99);
    background-size: 220% 220%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --------------------------
   Glassmorphism
--------------------------- */

.glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
}

    .glass:hover {
        background: rgba(0,53,88,0.40);
        box-shadow: 0 0 22px rgba(0,128,195,0.45);
    }

/* --------------------------
   Iconos grandes
--------------------------- */
.icon-large i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff;
    transition: .3s ease;
}

.news-card:hover .icon-large i {
    transform: scale(1.15);
}

/* --------------------------
   Subrayado animado
--------------------------- */
.news-card h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #ffffff;
    transition: .3s ease;
}

.news-card:hover h4::after {
    width: 40%;
}

/* ==========================================================
   AGENDA — TIMELINE
========================================================== */

.timeline {
    position: relative;
    border-left: 3px solid var(--blue-primary);
    padding-left: 30px;
    margin-top: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -13px;
        top: 0;
        width: 22px;
        height: 22px;
        background: var(--blue-primary);
        border-radius: 50%;
        border: 3px solid #ffffff;
        box-shadow: 0px 0px 10px rgba(0,53,88,0.35);
    }

/* Corrección de sangría para la fecha del timeline */
.timeline-date {
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 8px;
    margin-left: 25px; /* 🔥 Sangría añadida */
    display: block;
}

.timeline-content {
    background: rgba(0,53,88,0.20);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(6px);
}

    .timeline-content h4 {
        color: #003558;
        margin-bottom: 6px;
    }

/* Scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: .7s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
/* ==========================================================
   NOTICIAS — OLAS MARINAS ANIMADAS
========================================================== */

.news-card {
    position: relative;
    overflow: hidden;
}

    /* Onda superior */
    .news-card::before {
        content: "";
        position: absolute;
        bottom: -12px;
        left: 0;
        width: 200%;
        height: 40px;
        background: rgba(255,255,255,0.25);
        border-radius: 50%;
        animation: waveNews 6s infinite ease-in-out;
        z-index: 1;
    }

    /* Onda inferior */
    .news-card::after {
        content: "";
        position: absolute;
        bottom: -20px;
        left: -20%;
        width: 230%;
        height: 50px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        animation: waveNews 10s infinite ease-in-out reverse;
        z-index: 2;
    }

@keyframes waveNews {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Para que el contenido quede por encima de las olas */
.news-card .icon-large,
.news-card h4,
.news-card p,
.news-card a.btn {
    position: relative;
    z-index: 5;
}

/* Glass efecto cristal */
.news-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
}

    /* Glow azul en hover */
    .news-card:hover {
        background: rgba(0,53,88,0.40);
        box-shadow: 0 0 22px rgba(0,128,195,0.45);
    }
/* ==========================================================
   MODAL POP-UP DE NOTICIAS
========================================================== */
/* ==========================================================
   POP-UP — Fondo suave corporativo y contenido legible
========================================================== */

/* Fondo general del overlay (por detrás del cuadro) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 53, 88, 0.15); /* Azul muy suave translúcido */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

    .modal-overlay.active {
        display: flex;
    }

/* Contenedor del popup */
.modal-content {
    background: #f5fbff; /* Azul muy claro tipo papel */
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.20);
    color: var(--blue-text); /* Texto en azul institucional */
}

/* Título del popup */
.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--blue-primary);
}

/* Tarjetas internas del popup */
.modal-cards {
    display: grid;
    gap: 20px;
}

.modal-card {
    background: #e1f2ff; /* Azul pastel claro */
    color: var(--blue-text);
    border-radius: 12px;
    padding: 18px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .modal-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    }

    .modal-card h4 {
        margin-bottom: 8px;
        font-size: 1.05rem;
        color: var(--blue-primary);
    }

    .modal-card p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    /* Botones dentro del popup */
    .modal-card .btn {
        font-weight: 600;
        border-radius: 6px;
    }

/* Botón de cierre */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--blue-primary);
    cursor: pointer;
}

@media (min-width: 768px) {
    .modal-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   AGENDA — Tarjetas corporativas
========================================================== */

.agenda-card {
    background: linear-gradient(135deg, rgba(45,52,187,0.85), rgba(0,128,195,0.85), rgba(94,193,201,0.85), rgba(109,190,153,0.85) );
    background-size: 250% 250%;
    animation: agendaGradient 12s ease infinite;
    padding: 20px;
    border-radius: 14px;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: 0.3s ease;
}

    .agenda-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.25);
        background-position: 100% 0%;
    }

/* Movimiento del gradiente */
@keyframes agendaGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Estilos del título dentro de la agenda */
.agenda-card h4 {
    color: #ffffff !important;
    margin-bottom: 8px;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.25);
}

.agenda-card p {
    margin-bottom: 0;
    color: #f0f8ff;
}
/* ==========================================================
   POP-UPS LEGALES (Privacidad + Cookies)
========================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,53,88,0.15); /* Azul suave */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

    .modal-overlay.active {
        display: flex;
    }

/* Contenido del popup */
.legal-modal {
    background: #f7fbff; /* Fondo claro muy legible */
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 8px 35px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,128,195,0.3);
}

/* Cuerpo del texto */
.legal-body {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 10px;
}

    .legal-body p,
    .legal-body li {
        color: #003558;
        font-size: 0.95rem;
    }

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #003558;
    cursor: pointer;
}

/* Enlaces footer */
.footer-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
}

    .footer-link:hover {
        text-decoration: underline;
    }
/* ==========================================================
   BANNER DE COOKIES — Estilo corporativo
========================================================== */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,53,88,0.85);
    color: #ffffff;
    padding: 18px 25px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    z-index: 5000;
}

.cookies-container {
    max-width: 1000px;
    margin: 0 auto;
}

    .cookies-container p {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .cookies-container a {
        color: #5ec1c9;
        text-decoration: underline;
    }

.cookies-buttons button {
    margin-right: 10px;
}

.btn-outline-primary {
    color: #5ec1c9;
    border-color: #5ec1c9;
}

    .btn-outline-primary:hover {
        background-color: #5ec1c9;
        color: #003558;
    }

/* Mini modal para configuración */
.cookie-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .cookie-option label {
        color: #003558;
        font-size: 0.95rem;
    }
/* ==========================================================
   FOOTER OSCURO – ALMERÍA.BLUE
========================================================== */

.footer {
    background: #003558; /* Azul marino corporativo */
    color: #ffffff;
    padding: 50px 0;
    border-top: 4px solid #5ec1c9; /* Línea turquesa corporativa */
}

.footer-title {
    font-size: 1.3rem;
    color: #5ec1c9; /* Título turquesa */
    font-weight: 700;
}

.footer-subtitle {
    color: #d6e8f0; /* Azul muy clarito para legibilidad */
    font-size: 0.95rem;
}

.footer-section {
    color: #5ec1c9;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: 0.3s ease;
}

    .footer-link:hover {
        opacity: 1;
        color: #5ec1c9;
        text-decoration: underline;
    }

/* Logos */
.footer-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Logos del footer — 75% más grandes */
.footer-logo {
    height: 96px; /* Tamaño incrementado */
    opacity: 1;
    transition: 0.3s ease;
}

    .footer-logo:hover {
        transform: scale(1.05);
        opacity: 1;
    }

/* Logo institucional grande de la Cátedra */
.footer-logo-catedra-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.footer-logo-catedra {
    height: 120px;
    filter: brightness(1.2); /* Mucho más seguro que la anterior */
    opacity: 0.95;
    transition: 0.3s;
}

    .footer-logo-catedra:hover {
        transform: scale(1.05);
    }
/* Grupo de los dos logos juntos */
.footer-logos-group {
    display: flex;
    align-items: center;
    gap: 2px; /* 🔥 Más juntos */
    margin-right: 0;
    padding-right: 0;
}

/* El tercer logo separado */
.footer-logo-separated {
    margin-left: 60px; /* 🔥 Separación del grupo principal */
}

/* Ajustes generales */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* Sin separación general, la controlamos a mano */
    flex-wrap: wrap;

}

/* Tamaño de los logos */
.footer-logo {
    height: 96px; /* Tamaño 75% mayor (como pediste) */
    transition: 0.3s ease;
}

    .footer-logo:hover {
        transform: scale(1.05);
    }
.footer-logo-big {
    height: 110px; /* 🔥 más grande que los 96px estándar */
    transition: 0.3s ease;
}

/* Botón "Mostrar más" de I+D+i */
/* Botón de I+D+i compacto (no ancho completo) */
#toggleIDiBtn {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
    align-self: flex-start !important;
    margin: 10px 0 0 0 !important;
}