:root {
    --rojo-principal: #BF2C3A;
    --rojo-oscuro: #8B1E28;
    --rojo-claro: #D94A57;
    --rojo-10: rgba(191, 44, 58, 0.1);
    --negro-profundo: #1A1E24;
    --plata-claro: #F5F7FA;
    --plata-medio: #E4E9F0;
    --plata-oscuro: #6C7A8A;
    --blanco: #FFFFFF;
    --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 35px -15px rgba(191, 44, 58, 0.3);
    --navbar-height: 80px;
    --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--blanco);
    color: var(--negro-profundo);
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--rojo-principal) var(--plata-claro);
}

@media (min-width: 1268px) {
    .navbar-custom {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0rem 5%;
        height: var(--navbar-height);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-right: 0;
        position: relative;
        z-index: 1050;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .logo-img {
        height: 55px;
        width: auto;
        object-fit: contain;
        transition: var(--transition-default);
    }

    .nombre-img {
        height: 40px;
        width: auto;
        object-fit: contain;
        transition: var(--transition-default);
    }

    .logo-img:hover, .nombre-img:hover {
        transform: scale(1.05);
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        margin-left: auto;
    }

    .nav-item {
        margin: 0 0.2rem;
    }

    .nav-link {
        color: var(--negro-profundo) !important;
        font-weight: 500;
        padding: 0.5rem 1.2rem !important;
        border-radius: 30px;
        transition: var(--transition-default);
        font-size: 0.95rem;
        background: transparent;
        border: none;
        width: auto;
    }

    .nav-link:hover {
        background: var(--rojo-10);
        color: var(--rojo-principal) !important;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid var(--plata-medio);
        border-radius: 16px;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
        margin-top: 0.5rem;
        position: absolute;
    }

    .dropdown-item {
        border-radius: 10px;
        padding: 0.6rem 1.2rem;
        color: var(--negro-profundo);
        font-weight: 500;
        transition: all 0.2s;
        font-size: 0.9rem;
    }

    .dropdown-item:hover {
        background: var(--rojo-10);
        color: var(--rojo-principal);
        transform: translateX(5px);
    }

    .nav-link.dropdown-toggle::after {
        float: none;
        margin-top: 0;
    }
}

@media (max-width: 1267px) {
    .navbar-custom {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0 1rem;
        height: var(--navbar-height);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-right: auto;
        position: relative;
        z-index: 1050;
        max-width: calc(100% - 70px);
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .logo-img {
        height: 45px !important;
        width: auto;
        object-fit: contain;
    }

    .nombre-img {
        height: 35px !important;
        width: auto;
        object-fit: contain;
    }

    .navbar-toggler {
        border: 2px solid rgba(0, 0, 0, 0.2);
        padding: 8px 12px;
        border-radius: 12px;
        background: transparent;
        transition: var(--transition-default);
        position: relative;
        z-index: 1050;
        display: block !important;
        margin-left: auto;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
        border-color: rgba(0, 0, 0, 0.2);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-top: 0;
        padding: calc(var(--navbar-height) + 1rem) 1.5rem 2rem;
        transition: right 0.15s ease;
        z-index: 1040;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        display: block !important;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-item {
        width: 100%;
        margin: 0.5rem 0;
        list-style: none;
    }

    .nav-link {
        font-size: 1.2rem !important;
        padding: 0.9rem 1.2rem !important;
        width: 100%;
        text-align: left;
        border: 1px solid var(--plata-medio);
        background: white;
        border-radius: 12px;
        white-space: normal;
        word-break: break-word;
        color: var(--negro-profundo) !important;
        font-weight: 500;
        display: block !important;
    }

    .nav-link.dropdown-toggle {
        background: white;
        color: var(--negro-profundo) !important;
        border-color: var(--plata-medio);
    }

    .nav-link.dropdown-toggle.show {
        background: var(--rojo-10) !important;
        border-color: var(--rojo-principal) !important;
        color: var(--rojo-principal) !important;
    }

    .nav-link.dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

    .dropdown-menu {
        width: 100%;
        position: static !important;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--plata-medio);
        border-radius: 12px;
        padding: 0.5rem;
        margin-top: 0.5rem;
        transform: none !important;
        float: none;
    }

    .dropdown-item {
        font-size: 1rem !important;
        padding: 0.7rem 1rem;
        white-space: normal;
        word-break: break-word;
        border-radius: 8px;
        color: var(--negro-profundo);
        display: block;
    }

    .dropdown-item:hover {
        background: var(--rojo-10);
        color: var(--rojo-principal);
    }

    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width: 992px) and (max-width: 1267px) {
    .logo-img {
        height: 55px !important;
    }
    .nombre-img {
        height: 40px !important;
    }
    .nav-link {
        font-size: 1.4rem !important;
        padding: 1rem 1.2rem !important;
    }
    .dropdown-item {
        font-size: 1.2rem !important;
        padding: 0.9rem 1rem !important;
    }
    .navbar-collapse {
        padding: calc(var(--navbar-height) + 1.5rem) 2rem 2rem;
    }
    .navbar-nav {
        flex-direction: column !important;
    }
    .nav-item {
        width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .logo-img {
        height: 48px !important;
    }
    .nombre-img {
        height: 35px !important;
    }
    .nav-link {
        font-size: 1.3rem !important;
        padding: 0.9rem 1.2rem !important;
    }
    .dropdown-item {
        font-size: 1.1rem !important;
    }
    .navbar-nav {
        flex-direction: column !important;
    }
    .nav-item {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 38px !important;
    }
    .nombre-img {
        height: 28px !important;
    }
    .nav-link {
        font-size: 1.1rem !important;
        padding: 0.8rem 1rem !important;
    }
    .dropdown-item {
        font-size: 0.95rem !important;
    }
    .navbar-collapse {
        padding: calc(var(--navbar-height) + 1rem) 1rem 2rem;
    }
    .navbar-nav {
        flex-direction: column !important;
    }
    .nav-item {
        width: 100% !important;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    min-height: 550px;
    max-height: 700px;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content .section-tag {
    background: var(--rojo-principal);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(191,44,58,0.3);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.hero-slogan {
    font-size: 3rem;
    font-weight: 1000;
    font-family: 'Playfair Display', serif;
    color: var(--rojo-principal);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.btn-rojo {
    background: var(--rojo-principal);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 15px 25px -8px rgba(191, 44, 58, 0.4);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.btn-rojo:hover {
    background: #a02532;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -8px rgba(191, 44, 58, 0.5);
}

.btn-outline-rojo {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

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

.section {
    padding: 5rem 0;
    position: relative;
    scroll-margin-top: var(--navbar-height);
}

.section-tag {
    background: var(--blanco);
    color: var(--rojo-principal);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: 1px solid var(--plata-medio);
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.seccion-card {
    background: var(--blanco);
    border-radius: 30px;
    padding: 3rem 2rem;
    border: 1px solid var(--plata-medio);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.seccion-card:hover {
    border-color: var(--rojo-principal);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.seccion-card i {
    color: var(--rojo-principal);
    margin-bottom: 1.5rem;
}

.seccion-card:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.aliado-card {
    background: var(--blanco);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid var(--plata-medio);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
    height: 100%;
    text-align: center;
}

.aliado-card:hover {
    border-color: var(--rojo-principal);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.aliado-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.premio-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

footer {
    background: #44494e;
    color: var(--plata-claro);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.9fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}

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

.footer-logo-main {
    height: 65px;
    width: auto;
    display: block;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.50));
}

.footer-name {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.50));
}

.footer-description {
    color: var(--plata-claro);
    opacity: 0.6;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer-founded {
    color: var(--plata-claro);
    opacity: 0.4;
    font-size: 0.80rem;
}

.footer-contact-title {
    color: var(--blanco);
    font-size: 0.90rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-contact-item {
    margin-bottom: 0.85rem;
}

.footer-contact-item i {
    color: var(--rojo-principal);
    width: 28px;
    font-size: 0.9rem;
}

.footer-contact-item span {
    color: var(--plata-claro);
    opacity: 0.7;
    font-size: 0.85rem;
}

.footer-social-title {
    color: var(--blanco);
    font-size: 0.90rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-social-icons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.footer-social-icons a {
    color: var(--plata-claro);
    opacity: 0.6;
    transition: var(--transition-default);
}

.footer-social-icons a:hover {
    opacity: 1;
    color: var(--rojo-principal);
    transform: translateY(-2px);
}

.footer-social-text {
    color: var(--plata-claro);
    opacity: 0.3;
    font-size: 0.80rem;
    line-height: 1.4;
}

.footer-divider {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-divider-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.footer-divider-dot {
    width: 8px;
    height: 1px;
    background: var(--rojo-principal);
}

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

.footer-copyright p {
    color: var(--plata-claro);
    opacity: 0.35;
    font-size: 0.80rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.footer-values {
    color: var(--plata-claro);
    opacity: 0.25;
    font-size: 0.65rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-identity {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-logo-main, .footer-name {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-contact-title, .footer-social-title {
        text-align: center;
    }
    
    .footer-contact-item {
        text-align: center;
    }
    
    .footer-contact-item i {
        width: auto;
        margin-right: 8px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-social-text {
        text-align: center;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    
    .footer-identity {
        text-align: center;
    }
    
    .footer-logo-main {
        height: 50px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-name {
        height: 32px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-description {
        font-size: 0.7rem;
    }
    
    .footer-contact-title, .footer-social-title {
        text-align: center;
    }
    
    .footer-contact-item {
        text-align: center;
    }
    
    .footer-contact-item i {
        width: auto;
        margin-right: 6px;
    }
    
    .footer-contact-item span {
        font-size: 0.8rem;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-social-text {
        text-align: center;
        font-size: 0.65rem;
    }
    
    .footer-divider {
        margin-bottom: 1rem;
    }
    
    .footer-copyright p {
        font-size: 0.65rem;
    }
    
    .footer-values {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-logo-main {
        height: 45px;
    }
    
    .footer-name {
        height: 28px;
    }
    
    .footer-contact-item span {
        font-size: 0.75rem;
    }
    
    .footer-social-icons {
        gap: 1rem;
    }
}

.first-section {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

body.menu-open {
    overflow: hidden;
}

.nav-link i.fa-user-circle {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-right: 5px;
}

.fa-star.text-danger {
    color: var(--rojo-principal) !important;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--plata-claro);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--rojo-principal);
    border-radius: 10px;
    border: 3px solid var(--plata-claro);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--rojo-oscuro);
}
::-webkit-scrollbar-corner {
    background: var(--plata-claro);
}

.team-card {
    transition: var(--transition-default);
    border: 1px solid var(--plata-medio);
    border-radius: 30px;
    overflow: hidden;
    background: var(--blanco);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--rojo-principal);
}
.team-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--plata-medio), var(--plata-oscuro));
}
.team-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.team-img-placeholder i {
    font-size: 4rem;
    color: var(--blanco);
    opacity: 0.8;
}
.team-info {
    padding: 1rem;
    text-align: center;
}
.team-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-frase {
    font-size: 0.8rem;
    color: var(--plata-oscuro);
    font-style: italic;
    margin: 0;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.categoria-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: var(--blanco);
    border: 1px solid var(--plata-medio);
    color: var(--negro-profundo);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-default);
    cursor: pointer;
}
.tab-btn:hover {
    background: var(--rojo-10);
    border-color: var(--rojo-principal);
    color: var(--rojo-principal);
}
.tab-btn.active {
    background: var(--rojo-principal);
    border-color: var(--rojo-principal);
    color: white;
    box-shadow: var(--shadow-hover);
}
.categoria-contenido {
    display: none;
}
.categoria-contenido.active {
    display: block;
}

.modal-content-equipo {
    border-radius: 30px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-height: 600px;
    overflow: hidden;
}
.modal-foto-col {
    background: linear-gradient(145deg, var(--plata-medio), var(--plata-oscuro));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
}
.modal-foto-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modal-foto-placeholder {
    font-size: 8rem;
    color: var(--blanco);
    opacity: 0.8;
}
.modal-info-col {
    padding: 2rem 1.8rem;
    background-color: var(--blanco);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 600px;
    overflow-y: auto;
}
.modal-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    flex-shrink: 0;
    line-height: 1.2;
}
.modal-cargo {
    color: var(--rojo-principal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.modal-frase {
    background-color: var(--rojo-10);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.2rem;
    font-style: italic;
    color: var(--rojo-principal);
    font-weight: 500;
    border-left: 4px solid var(--rojo-principal);
    flex-shrink: 0;
    font-size: 0.95rem;
}
.modal-frase i {
    margin-right: 0.5rem;
    opacity: 0.7;
}
.modal-descripcion {
    color: var(--plata-oscuro);
    line-height: 1.6;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 1.2rem;
    flex: 1;
    font-size: 0.95rem;
}
.modal-contacto {
    margin-bottom: 1.2rem;
    flex-shrink: 0;
    background-color: var(--plata-claro);
    padding: 1rem;
    border-radius: 16px;
}
.modal-contacto p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.modal-contacto i {
    width: 25px;
    color: var(--rojo-principal);
}
.modal-social {
    flex-shrink: 0;
    padding-bottom: 0.2rem;
}
.modal-social a {
    color: var(--negro-profundo);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition-default);
}
.modal-social a:hover {
    color: var(--rojo-principal);
}
.btn-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1060;
    cursor: pointer;
}
.btn-cerrar-modal:hover {
    background-color: var(--rojo-principal);
    color: white;
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    .hero {
        min-height: 450px;
    }
    .hero-content {
        transform: translateY(-5%);
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section {
        padding: 4rem 0;
    }
    .btn-rojo, .btn-outline-rojo {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .first-section {
        padding-top: calc(1rem + var(--navbar-height)) !important;
    }
    .categoria-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 1rem 0 2rem;
    }
    .categoria-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        flex: 0 0 auto;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    .modal-foto-col {
        width: 100%;
        aspect-ratio: 4 / 5;
    }
    .modal-info-col {
        height: auto;
        max-height: none;
        padding: 1.5rem;
    }
    .modal-nombre {
        font-size: 1.8rem;
    }
    .team-frase {
        font-size: 0.75rem;
        height: 30px;
    }
    .row {
        justify-content: center !important;
        margin-left: 0;
        margin-right: 0;
    }
    .col-lg-3, .col-md-6 {
        display: flex !important;
        justify-content: center !important;
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (min-width: 768px) and (max-width: 1267px) {
    #pilares .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .section .row.justify-content-center .col-md-6 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
        margin: 0 auto;
    }
    .section .col-md-3.col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .section.bg-light .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .section.bg-light .row.align-items-center .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .section.bg-light .row.mt-5 .col-4 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
    .seccion-card {
        padding: 1.5rem 1rem;
        border-radius: 24px;
    }
    .seccion-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .seccion-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .seccion-card i {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .aliado-card {
        padding: 1.2rem;
        border-radius: 24px;
    }
    .aliado-img {
        max-width: 130px;
        margin-bottom: 1rem;
    }
    .premio-img {
        width: 65px;
        height: 65px;
        margin-bottom: 0.8rem;
    }
    .aliado-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .aliado-card h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    .aliado-card p {
        font-size: 0.8rem;
    }
    .section.bg-danger .display-5 {
        font-size: 1.6rem;
    }
    .section.bg-danger .fs-5 {
        font-size: 0.9rem;
    }
    .section.bg-danger .btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
    .section {
        padding: 3rem 0;
    }
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .section-tag {
        font-size: 0.7rem;
        padding: 0.4rem 1.5rem;
    }
    h2.display-4 {
        font-size: 2rem;
    }
    .display-5 {
        font-size: 1.6rem;
    }
    .fs-5 {
        font-size: 0.9rem !important;
    }
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    .seccion-card,
    .aliado-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .seccion-card .btn-link,
    .aliado-card .btn-link {
        margin-top: auto;
    }
}

@media (max-width: 767px) {
    .section .row.justify-content-center .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .section .col-md-3.col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    #pilares .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .section.bg-light .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .section.bg-light .row.align-items-center .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .section.bg-light .row.align-items-center .col-lg-6:last-child {
        margin-top: 1.5rem;
    }
    .section.bg-light .row.mt-5 .col-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
    .aliado-card {
        padding: 1rem;
    }
    .aliado-img {
        max-width: 100px;
    }
    .premio-img {
        width: 55px;
        height: 55px;
    }
    .aliado-card h3 {
        font-size: 1.1rem;
    }
    .aliado-card h4 {
        font-size: 0.95rem;
    }
    .aliado-card p {
        font-size: 0.75rem;
    }
    .section {
        padding: 2.5rem 0;
    }
    h2.display-4 {
        font-size: 1.6rem;
    }
    .display-5 {
        font-size: 1.3rem;
    }
    .section-tag {
        font-size: 0.65rem;
        padding: 0.3rem 1rem;
    }
    .section.bg-danger .display-5 {
        font-size: 1.3rem;
    }
    .section.bg-danger .fs-5 {
        font-size: 0.85rem !important;
    }
    .section.bg-danger .btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .section .col-md-3.col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .section .row.justify-content-center .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}


@media (max-width: 1024px) and (min-height: 801px) {
    .modal-dialog {
        margin: 0.5rem auto !important;
        max-width: 85% !important;
        width: 85% !important;
        display: flex !important;
        align-items: center !important;
        min-height: calc(100% - 1rem) !important;
    }
    .modal-content-equipo {
        width: 100% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        border-radius: 28px !important;
    }
    .modal-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .modal-foto-col {
        width: 100% !important;
        aspect-ratio: 4 / 5 !important;
        flex-shrink: 0 !important;
    }
    .modal-foto-col img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .modal-foto-placeholder {
        font-size: 4rem !important;
    }
    .modal-info-col {
        padding: 1.5rem !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .modal-nombre {
        font-size: 1.5rem !important;
    }
    .modal-cargo {
        font-size: 0.75rem !important;
    }
    .modal-frase {
        font-size: 0.85rem !important;
    }
    .modal-descripcion {
        font-size: 0.85rem !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .modal-contacto p {
        font-size: 0.8rem !important;
    }
    .modal-social a {
        font-size: 1.3rem !important;
        width: 38px !important;
        height: 38px !important;
    }
    .btn-cerrar-modal {
        top: 12px !important;
        right: 12px !important;
        background: rgba(0,0,0,0.6) !important;
        backdrop-filter: blur(4px) !important;
        width: 36px !important;
        height: 36px !important;
    }
    .btn-cerrar-modal i {
        color: white !important;
    }
}

@media (max-width: 1024px) and (min-height: 601px) and (max-height: 800px) {
    .modal-dialog {
        max-width: 85% !important;
        width: 85% !important;
        margin: 0.5rem auto !important;
    }
    .modal-content-equipo {
        max-height: 88vh !important;
        overflow: hidden !important;
        border-radius: 28px !important;
    }
    .modal-grid {
        display: grid !important;
        grid-template-columns: 0.9fr 1.1fr !important;
        max-height: 88vh !important;
    }
    .modal-foto-col {
        aspect-ratio: 4 / 5 !important;
        height: 100% !important;
    }
    .modal-info-col {
        padding: 1.2rem !important;
        overflow-y: auto !important;
        max-height: 88vh !important;
    }
    .modal-nombre {
        font-size: 1.3rem !important;
    }
    .modal-cargo {
        font-size: 0.65rem !important;
    }
    .modal-frase {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    .modal-descripcion {
        font-size: 0.75rem !important;
        max-height: 130px !important;
        overflow-y: auto !important;
    }
    .modal-contacto p {
        font-size: 0.7rem !important;
    }
    .modal-social a {
        font-size: 1.1rem !important;
        width: 32px !important;
        height: 32px !important;
    }
    .btn-cerrar-modal {
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

@media (max-width: 1024px) and (max-height: 600px) {
    .modal-dialog {
        max-width: 92% !important;
        width: 92% !important;
        margin: 0.25rem auto !important;
    }
    .modal-content-equipo {
        max-height: 96vh !important;
        border-radius: 24px !important;
    }
    .modal-grid {
        grid-template-columns: 0.85fr 1.15fr !important;
        max-height: 96vh !important;
    }
    .modal-foto-placeholder {
        font-size: 3rem !important;
    }
    .modal-info-col {
        padding: 0.9rem 1rem !important;
    }
    .modal-nombre {
        font-size: 1.1rem !important;
    }
    .modal-cargo {
        font-size: 0.6rem !important;
    }
    .modal-frase {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.7rem !important;
    }
    .modal-descripcion {
        font-size: 0.6rem !important;
        max-height: 90px !important;
    }
    .modal-contacto p {
        font-size: 0.55rem !important;
    }
    .modal-social a {
        font-size: 0.9rem !important;
        width: 26px !important;
        height: 26px !important;
    }
    .btn-cerrar-modal {
        top: 6px !important;
        right: 6px !important;
        width: 26px !important;
        height: 26px !important;
    }
}

@media (max-width: 1024px) and (min-height: 1100px) {
    .modal-dialog {
        max-width: 75% !important;
        width: 75% !important;
    }
    .modal-info-col {
        padding: 2rem !important;
    }
    .modal-nombre {
        font-size: 1.8rem !important;
    }
    .modal-descripcion {
        font-size: 0.95rem !important;
    }
}