/* Variables Globales */
:root {
    --primary-color: #556B2F;
    --secondary-color: #6B8E23;
    --accent-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Barra de Navegación */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.logo-highlight {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 25px 20px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Menú Desplegable */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--secondary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 20px;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Sección Hero */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 20px 40px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-top-left-logos {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
}

.hero-top-right-logos {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
    height: 60px;
}

.hero-top-left-logos img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background-color: transparent;
}

.hero-top-right-logos img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background-color: transparent;
}

.hero-top-left-logos img, .hero-logo-img {
    background-color: transparent;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
}

.title-with-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-logo {
    flex-shrink: 0;
}

.hero-logo-img {
    height: 230px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    border-radius: 10px;
}

.hero-text h1 {
    margin: 0;
    font-size: 54px;
    color: #8B4513;
    line-height: 1.2;
    font-weight: 700;
    border-bottom: 3px solid #8B4513;
    padding-bottom: 10px;
    display: inline-block;
}

.hero-image-bottom {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.hero-bottom-logo {
    display: block;
    width: min(560px, 92%);
    height: auto;
    margin: 28px auto 0;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-text h1 {
    font-size: 64px;
    color: #8B4513;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    border-bottom: 3px solid #8B4513;
    padding-bottom: 10px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.hero-description p {
    margin-bottom: 20px;
    text-align: justify;
}

.hero-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.responsive-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 48px;
}

.image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.image-placeholder p {
    font-size: 16px;
    opacity: 0.9;
}

/* Secciones de Contenido */
.content-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.alt-section {
    background-color: #eef2f7;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-container h2 {
    font-size: 36px;
    color: #8B4513;
    margin-bottom: 18px;
    line-height: 1.2;
}

.section-container p,
.section-container li {
    font-size: 17px;
    color: #2f3b3f;
}

.section-container p {
    margin-bottom: 16px;
}

.content-dropdown {
    background-color: #ffffff;
    border: 1px solid #d7e2d0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-dropdown summary {
    list-style: none;
    cursor: default;
    font-size: 32px;
    color: #8B4513;
    font-weight: 700;
    padding: 18px 24px;
    background-color: #f5f8f1;
    border-bottom: 1px solid #d7e2d0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-dropdown summary::-webkit-details-marker {
    display: none;
}

.content-dropdown > summary {
    pointer-events: none;
}

.content-dropdown summary::after {
    content: '+';
    color: var(--secondary-color);
    font-size: 30px;
    line-height: 1;
}

.content-dropdown[open] summary::after {
    content: '-';
}

.content-dropdown-body {
    padding: 22px 24px 24px;
}

.custom-list {
    margin: 10px 0 0 22px;
    padding: 0;
}

.custom-list li {
    margin-bottom: 10px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.consortium-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
    background-color: white;
}

.consortium-table th,
.consortium-table td {
    border-bottom: 1px solid #d8e0dc;
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.consortium-table th {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 700;
    background-color: #f5f8f5;
}

.consortium-table td {
    font-size: 15px;
    color: #2b2f31;
}

.consortium-table a {
    color: #0277bd;
}

.ll-accordion {
    display: grid;
    gap: 12px;
}

.ll-accordion details {
    background-color: white;
    border: 1px solid #dce4da;
    border-radius: 10px;
    padding: 12px 16px;
}

.ll-accordion summary {
    cursor: pointer;
    font-weight: 700;
    color: #425c1f;
    font-size: 18px;
}

.ll-accordion details[open] {
    border-color: #a0b585;
    box-shadow: 0 8px 20px rgba(85, 107, 47, 0.12);
}

.ll-accordion details p {
    margin-top: 12px;
}

.ll-accordion .custom-list {
    margin-top: 8px;
}

/* Animaciones */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start;
    }

    .hamburger {
        display: flex;
        position: fixed;
        top: 18px;
        left: 14px;
        z-index: 1200;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-link {
        color: white;
        padding: 10px 20px;
    }

    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border-left: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 10px 16px 18px;
        margin-bottom: 18px;
    }

    .hero {
        padding: 96px 16px 22px;
    }

    .hero-top-left-logos {
        top: 86px;
        left: auto;
        right: 14px;
        gap: 8px;
    }

    .hero-top-right-logos {
        position: fixed;
        top: 8px;
        right: 10px;
        z-index: 1190;
        height: auto;
    }

    .hero-top-left-logos img {
        height: 44px;
    }

    .hero-top-right-logos img {
        height: 58px;
    }

    .hero-text h1 {
        position: fixed;
        top: 18px;
        left: 58px;
        right: 78px;
        z-index: 1150;
        margin: 0;
        border: none;
        padding: 0;
        text-align: left;
        font-size: 24px;
        color: #8B4513;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-text {
        margin-top: 0;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 14px;
        line-height: 1.35;
    }

    .hero-description {
        font-size: 14px;
        text-align: left;
        line-height: 1.55;
    }

    .hero-image-bottom {
        margin-top: 10px;
    }

    .hero-bottom-logo {
        width: min(500px, 94%);
        margin-top: 20px;
    }

    .section-container h2 {
        font-size: 28px;
    }

    .content-dropdown summary {
        font-size: 24px;
        padding: 14px 16px;
    }

    .content-dropdown summary::after {
        font-size: 26px;
    }

    .content-dropdown-body {
        padding: 16px;
    }

    .section-container p,
    .section-container li {
        font-size: 15px;
    }

    .ll-accordion summary {
        font-size: 16px;
    }

    .image-placeholder {
        height: 300px;
    }

    .image-placeholder i {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .hamburger {
        top: 18px;
        left: 12px;
    }

    .hero-top-left-logos {
        top: 84px;
        right: 10px;
        gap: 6px;
    }

    .hero-top-right-logos {
        top: 8px;
        right: 8px;
    }

    .hero-top-left-logos img {
        height: 38px;
    }

    .hero-top-right-logos img {
        height: 52px;
    }

    .title-with-logo {
        flex-direction: column;
        gap: 20px;
    }

    .hero-logo-img {
        height: 110px;
    }

    .hero-text h1 {
        font-size: 20px;
        left: 54px;
        right: 66px;
        top: 20px;
    }

    .hero-content {
        padding: 8px 12px 16px;
        margin-bottom: 20px;
    }

    .hero-bottom-logo {
        width: min(380px, 96%);
        margin-top: 18px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .content-section {
        padding: 44px 12px;
    }

    .section-container h2 {
        font-size: 24px;
    }

    .content-dropdown summary {
        font-size: 20px;
        padding: 12px 14px;
    }

    .content-dropdown summary::after {
        font-size: 24px;
    }

    .content-dropdown-body {
        padding: 14px;
    }

    .image-placeholder {
        height: 250px;
    }

    .image-placeholder i {
        font-size: 50px;
    }
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

/* Scroll bar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
