/* ========================================= */
/* ICTIOLOGÍA - ESTILOS ESPECÍFICOS */
/* ========================================= */

.ictiologia-wrapper {
    padding: 20px 30px 30px 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.ictiologia-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 40px 45px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-top: 30px;
}

/* ========================================= */
/* HEADER DE ICTIOLOGÍA */
/* ========================================= */

.ictiologia-header {
    text-align: center;
    margin-bottom: 35px;
}

.ictiologia-icon {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 5px;
}

.ictiologia-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a2634;
    margin-bottom: 10px;
}

.ictiologia-title span {
    color: #007AB4;
}

.ictiologia-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007AB4, #ffd700);
    margin: 0 auto 15px auto;
    border-radius: 4px;
}

.ictiologia-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    color: #4a5568;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================= */
/* TARJETA DE PRESENTACIÓN */
/* ========================================= */

.ictiologia-card {
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 40px;
}

.ictiologia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.ictiologia-card-accent {
    height: 5px;
    background: #007AB4;
    width: 100%;
    flex-shrink: 0;
}

.ictiologia-card-content {
    padding: 28px 32px;
}

.ictiologia-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #1a2634;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid #007AB4;
    display: inline-block;
}

.ictiologia-card-title i {
    color: #007AB4;
    margin-right: 8px;
}

.ictiologia-card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(13px, 1.5vw, 15px);
    color: #2d3748;
    line-height: 1.9;
    text-align: justify;
    font-weight: 400;
}

.ictiologia-card-text strong {
    color: #007AB4;
    font-weight: 700;
}

/* ========================================= */
/* PROYECTOS CONCLUIDOS - TÍTULO */
/* ========================================= */

.ictiologia-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    font-weight: 700;
    color: #1a2634;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid #007AB4;
    display: inline-block;
    width: 100%;
}

.ictiologia-section-title i {
    color: #007AB4;
    margin-right: 10px;
}

/* ========================================= */
/* GRID DE PROYECTOS - 3 COLUMNAS */
/* ========================================= */

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ========================================= */
/* TARJETA DE PROYECTO */
/* ========================================= */

.proyectos-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

.proyectos-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.proyectos-card-accent {
    height: 4px;
    background: #007AB4;
    width: 100%;
    flex-shrink: 0;
}

.proyectos-card-content {
    padding: 18px 20px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================================= */
/* HEADER DEL PROYECTO */
/* ========================================= */

.proyectos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.proyectos-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    font-weight: 700;
    color: #1a2634;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.proyectos-title i {
    color: #007AB4;
    margin-right: 6px;
}

.proyectos-badge {
    background: #007AB4;
    color: white;
    font-size: 10px;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.proyectos-badge i {
    font-size: 10px;
}

.proyectos-badge-concluido {
    background: #2e7d32;
}

.proyectos-badge-ejecucion {
    background: #ed6c02;
}

.proyectos-badge-programado {
    background: #007AB4;
}

/* ========================================= */
/* INFORMACIÓN DEL PROYECTO */
/* ========================================= */

.proyectos-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #007AB4;
    font-weight: 600;
    margin: 4px 0 10px 0;
}

.proyectos-year i {
    margin-right: 4px;
}

.proyectos-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #2d3748;
    line-height: 1.7;
    text-align: justify;
    margin: 0 0 10px 0;
    flex: 1;
}

.proyectos-description strong {
    color: #007AB4;
    font-weight: 700;
}

.proyectos-description em {
    font-style: italic;
    color: #1a2634;
}

.proyectos-funding {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #718096;
    margin: 4px 0 0 0;
}

.proyectos-funding i {
    margin-right: 4px;
    color: #007AB4;
}

.proyectos-funding strong {
    color: #1a2634;
    font-weight: 600;
}

.proyectos-team {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #4a5568;
    font-weight: 500;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.5;
}

.proyectos-team i {
    margin-right: 4px;
    color: #007AB4;
}

.proyectos-team strong {
    color: #1a2634;
    font-weight: 700;
}

/* ========================================= */
/* RESPONSIVE - PROYECTOS */
/* ========================================= */

/* Tablets */
@media (max-width: 992px) {
    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .ictiologia-container {
        padding: 28px 25px 35px 25px;
    }

    .ictiologia-wrapper {
        padding: 15px 20px 20px 20px;
    }
}

@media (max-width: 768px) {
    .ictiologia-wrapper {
        padding: 10px 15px 15px 15px;
    }

    .ictiologia-container {
        padding: 20px 18px 28px 18px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .ictiologia-card-content {
        padding: 20px 22px;
    }

    .ictiologia-card-title {
        font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    }

    .ictiologia-card-text {
        font-size: clamp(12px, 1.8vw, 13px);
        line-height: 1.8;
    }

    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .proyectos-card-content {
        padding: 16px 18px 18px 18px;
    }

    .proyectos-title {
        font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    }

    .ictiologia-section-title {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 22px;
        padding-bottom: 10px;
    }
}

/* Móviles */
@media (max-width: 600px) {
    .ictiologia-container {
        padding: 16px 14px 22px 14px;
        border-radius: 12px;
        margin-top: 15px;
    }

    .ictiologia-wrapper {
        padding: 5px 10px 10px 10px;
    }

    .ictiologia-header {
        margin-bottom: 25px;
    }

    .ictiologia-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .ictiologia-subtitle {
        font-size: 13px;
    }

    .ictiologia-divider {
        width: 60px;
        height: 3px;
    }

    .ictiologia-card {
        border-radius: 12px;
        margin-bottom: 28px;
    }

    .ictiologia-card-content {
        padding: 16px 18px;
    }

    .ictiologia-card-title {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom-width: 2px;
        display: block;
        width: 100%;
    }

    .ictiologia-card-text {
        font-size: 12px;
        line-height: 1.7;
    }

    .ictiologia-card-accent {
        height: 4px;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .proyectos-card {
        border-radius: 12px;
    }

    .proyectos-card:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .proyectos-card-content {
        padding: 14px 16px 16px 16px;
    }

    .proyectos-title {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .proyectos-description {
        font-size: 12px;
        line-height: 1.6;
    }

    .proyectos-badge {
        font-size: 9px;
        padding: 1px 10px;
    }

    .proyectos-year {
        font-size: 10px;
    }

    .proyectos-team {
        font-size: 10.5px;
    }

    .proyectos-funding {
        font-size: 10px;
    }

    .ictiologia-section-title {
        font-size: clamp(1rem, 5vw, 1.2rem);
        margin-bottom: 18px;
        padding-bottom: 8px;
        border-bottom-width: 3px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .ictiologia-container {
        padding: 12px 10px 18px 10px;
    }

    .ictiologia-card-content {
        padding: 14px 14px;
    }

    .proyectos-card-content {
        padding: 12px 14px 14px 14px;
    }

    .ictiologia-card-title {
        font-size: 0.9rem;
    }

    .ictiologia-card-text {
        font-size: 11.5px;
        line-height: 1.6;
    }

    .proyectos-title {
        font-size: 0.85rem;
    }

    .proyectos-description {
        font-size: 11.5px;
    }

    .proyectos-team {
        font-size: 10px;
    }

    .proyectos-year {
        font-size: 9.5px;
    }

    .proyectos-funding {
        font-size: 9.5px;
    }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
    .ictiologia-container {
        padding: 45px 55px 55px 55px;
    }

    .ictiologia-wrapper {
        padding: 30px 50px 40px 50px;
    }

    .ictiologia-card-content {
        padding: 35px 40px;
    }

    .ictiologia-card-text {
        font-size: 15px;
        line-height: 2;
    }

    .ictiologia-card-title {
        font-size: 1.5rem;
    }

    .proyectos-grid {
        gap: 28px;
    }

    .proyectos-card-content {
        padding: 22px 24px 26px 24px;
    }

    .proyectos-description {
        font-size: 13px;
    }

    .proyectos-title {
        font-size: 1.05rem;
    }
}

/* ========================================= */
/* BANNER ESTÁTICO */
/* ========================================= */

.banner-static {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 400px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 50, 80, 0.8) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 900px;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    padding: 6px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.banner-badge i {
    margin-right: 8px;
}

.banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.banner-title span {
    color: #ffd700;
}

.banner-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.4vw, 20px);
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 2px;
}

/* ========================================= */
/* RESPONSIVE - BANNER */
/* ========================================= */

@media (max-width: 768px) {
    .banner-static {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
    }

    .banner-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .banner-badge {
        font-size: 11px;
        padding: 4px 18px;
    }

    .banner-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner-static {
        height: 40vh;
        min-height: 250px;
        max-height: 400px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-badge {
        font-size: 10px;
        padding: 3px 14px;
    }

    .banner-subtitle {
        font-size: 12px;
    }
}

/* ========================================= */
/* TARJETA DE PROYECTOS CLICKEABLE */
/* ========================================= */

.proyectos-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.proyectos-card-link:hover {
    transform: translateY(-5px);
}

.proyectos-card-link:hover .proyectos-card {
    box-shadow: 0 12px 40px rgba(0, 122, 180, 0.15);
    border-color: #007AB4;
}

/* Asegurar que el cursor sea pointer */
.proyectos-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efecto de flecha al hacer hover en toda la tarjeta */
.proyectos-card-link:hover .proyectos-card::after {
    content: "→ Ver más";
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #007AB4;
    opacity: 0;
    animation: fadeInArrow 0.3s ease forwards;
}

@keyframes fadeInArrow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Posición relativa para la flecha */
.proyectos-card {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .proyectos-card-link:hover .proyectos-card::after {
        content: "→ Ver más";
        font-size: 12px;
        bottom: 15px;
        right: 18px;
    }
}

@media (max-width: 480px) {
    .proyectos-card-link:hover .proyectos-card::after {
        content: "→ Ver más";
        font-size: 11px;
        bottom: 12px;
        right: 14px;
    }
}