* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Reglas globales para enlaces */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e7520f;
}

/* Estilos específicos para enlaces del contenido principal */
.content-section a {
    color: #008888;
}

.content-section a:visited {
    color: #006666;
}

.content-section a:hover {
    color: #00a5a4;
}

.content-section a:active {
    color: #b33f0a;
}

/* Header y Navbar */
.header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 85%;
    margin: 0 auto;
}

.logo {
    height: auto;
    width: auto;
    max-height: 60px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00a5a4;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    min-width: 250px;
}

.search-input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    padding: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.search-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #0066cc;
}

.social-cards {
    display: flex;
    gap: 0.5rem;
}

.social-card {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.social-card:hover {
    background-color: #e7520f;
    color: white;
    transform: translateY(-2px);
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Banner */
.banner {
    width: 100%;
    display: block;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Contenido Principal */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-section {
    margin-bottom: 4.5rem;
}

.content-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #e7520f;   
    margin-bottom: 1.5rem;
}

/* Reglas reutilizables de espacios verticales */
.margin-bottom-10 {
    margin-bottom: 0.625rem; /* 10px */
}

.margin-bottom-20 {
    margin-bottom: 1.25rem; /* 20px */
}

.margin-bottom-30 {
    margin-bottom: 1.875rem; /* 30px */
}

.margin-bottom-40 {
    margin-bottom: 2.5rem; /* 40px */
}

.margin-bottom-50 {
    margin-bottom: 3.125rem; /* 50px */
}

.margin-bottom-60 {
    margin-bottom: 3.75rem; /* 60px */
}

.margin-bottom-70 {
    margin-bottom: 4.375rem; /* 70px */
}

.margin-bottom-80 {
    margin-bottom: 5rem; /* 80px */
}

.margin-bottom-90 {
    margin-bottom: 5.625rem; /* 90px */
}

.margin-bottom-100 {
    margin-bottom: 6.25rem; /* 100px */
}

/* Reglas reutilizables de espacios verticales con margin-top */
.margin-top-10 {
    margin-top: 0.625rem; /* 10px */
}

.margin-top-20 {
    margin-top: 1.25rem; /* 20px */
}

.margin-top-30 {
    margin-top: 1.875rem; /* 30px */
}

.margin-top-40 {
    margin-top: 2.5rem; /* 40px */
}

.margin-top-50 {
    margin-top: 3.125rem; /* 50px */
}

.margin-top-60 {
    margin-top: 3.75rem; /* 60px */
}

.margin-top-70 {
    margin-top: 4.375rem; /* 70px */
}

.margin-top-80 {
    margin-top: 5rem; /* 80px */
}

.margin-top-90 {
    margin-top: 5.625rem; /* 90px */
}

.margin-top-100 {
    margin-top: 6.25rem; /* 100px */
}

/* Estilos para imagen de campaña */
.campaign-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem; /* 50px = 3.125rem */
    margin-bottom: 7.5rem; /* 50px = 3.125rem */
}

.campaign-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-image-container a:hover .campaign-image {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Estilos para la sección Histórico */
.historico-card {
    display: flex;
    gap: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.historico-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    background-color: #f0f1f2;
}

.historico-image {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 250px;
}

.historico-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.historico-card:hover .historico-image img {
    transform: scale(1.05);
}

.historico-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    max-height: 250px;
    padding: 0.5rem 0;
    overflow: hidden;
}

.historico-content h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #e7520f;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.historico-card:hover .historico-content h3 {
    color: #ee7404;
}

.historico-date {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #c4c4c4;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.historico-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.5;
    color: #333;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.historico-link-container {
    text-align: left;
    margin-top: auto;
}

.historico-link-container span {
    color: #008888;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.historico-card:hover .historico-link-container span {
    color: #00a5a4;
    transform: translateX(5px);
}

.historico-link-container .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.historico-card:hover .historico-link-container .arrow {
    transform: translateX(3px);
}

/* Responsive para tabletas */
@media (max-width: 1024px) and (min-width: 769px) {
    .historico-card {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .historico-image {
        flex: 0 0 40%;
        min-height: 180px;
        max-height: 200px;
    }
    
    .historico-image img {
        min-height: 180px;
        max-height: 200px;
    }
    
    .historico-content {
        min-height: 180px;
        max-height: 200px;
    }
    
    .historico-content h3 {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .historico-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: stretch;
    }
    
    .historico-image {
        flex: none;
        width: 100%;
        min-height: 200px;
        max-height: 200px;
    }
    
    .historico-image img {
        min-height: 200px;
        max-height: 200px;
    }
    
    .historico-content {
        text-align: center;
        min-height: auto;
        max-height: none;
        padding: 0;
    }
    
    .historico-content h3 {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .historico-link-container {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Estilos para la sección Memorias */
.memorias-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.memoria-card {
    display: flex;
    background-color: #f7f8f9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
}

.memoria-image {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    padding: 0;
}

.memoria-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0.375rem;
    transition: transform 0.3s ease;
}

.memoria-image:hover img {
    transform: scale(1.05);
}

.memoria-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.content-section .memoria-content h4,
.memoria-content h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    color: #008888;
}

.memoria-content h4 a {
    color: #008888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.memoria-content h4 a:hover {
    color: #00a5a4;
}

.memoria-description {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.875rem; /* 30px = 1.875rem */
}

.memoria-link-container {
    margin-top: auto;
}

.memoria-link-container a {
    color: #008888;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.memoria-link-container a:hover {
    color: #00a5a4;
    transform: translateX(5px);
}

.memoria-link-container .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 0.5rem;
}

.memoria-link-container a:hover .arrow {
    transform: translateX(3px);
}

/* Responsive para tabletas y móviles */
@media (max-width: 768px) {
    .memoria-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .memoria-image {
        flex: none;
        width: 100%;
        min-height: 0;
        padding: 0;
    }
    
    .memoria-image img {
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }
    
    .memoria-content {
        text-align: center;
        align-items: center;
    }
}

.content-section h1.seo {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #666;
    margin-top: 0;
    margin-top: 3.125rem;
    text-align: left;
    opacity: 0.7;
}

.content-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1b1b1b;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    color: #1b1b1b;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
}

.content-section h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #1b1b1b;
    margin-top: 3.125rem;
    margin-bottom: 0.8rem;
}

.content-section h5 {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    color: #1b1b1b;
    margin-top: 3.125rem;
    margin-bottom: 0.6rem;
}

.content-section h6 {
    font-size: clamp(1rem, 2vw, 1rem);
    font-weight: 600;
    color: #1b1b1b;
    margin-top: 3.125rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #000;
}

.content-section ul {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #000;
    padding-left: 1rem;
    list-style: none;
    /* text-align: center; */
}

.content-section ul li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    /* justify-content: center; */
}

.content-section ul li::before {
    content: "✓";
    color: #e7520f;
    font-size: 0.9em;
    line-height: 1.8;
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Lista con viñetas circulares alineadas a la izquierda */
.content-section ul.left-aligned-circles {
    text-align: left;
    padding-left: 1.5rem;
}

.content-section ul.left-aligned-circles li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    display: block;
    align-items: normal;
    justify-content: normal;
}

.content-section ul.left-aligned-circles li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #e7520f;
    border-radius: 50%;
    margin-right: 0;
    flex-shrink: 0;
}

.content-section ul.left-aligned-circles.left-aligned-circles-indented {
    margin-left: 2.5rem;
}

/* Footer */
.footer {
    width: 100%;
    background-color: #141414;
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-logo {
    height: auto;
    width: auto;
    margin-bottom: 2rem;
    max-width: 100%;
}

.footer-text {
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    line-height: 1.6;
    width: 85%;
    margin: 0 auto;
}

.footer a {
    color: #ee7404;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #c4c4c4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem;
        position: relative;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-right.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .search-container {
        width: 100%;
        min-width: auto;
    }

    .social-cards {
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .main-content {
        max-width: 768px;
        padding: 3rem 1.5rem;
    }

    .banner img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .main-content {
        max-width: 100%;
        padding: 2rem 1rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-logo {
        max-width: 300px;
    }

    .banner img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        max-width: 250px;
    }

    .banner img {
        max-width: 100%;
        height: auto;
    }
}

.text-center {
    text-align: center;
}

/* Filtro del histórico */
.historico-filter-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.75rem;
    margin-top: 0.75rem;
    overflow: visible;
}

.historico-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.historico-filter-field label {
    display: block;
    font-weight: 700;
    color: #E34b00;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.historico-dropdown {
    position: relative;
}

.historico-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #eef8f8;
    border: 1.5px solid #008888;
    border-radius: 0.7rem;
    padding: 0.72rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: #222;
    cursor: pointer;
    text-align: left;
}

.historico-dropdown-toggle::after {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    margin-left: 0.75rem;
    flex: 0 0 0.7rem;
    border-right: 2px solid #008888;
    border-bottom: 2px solid #008888;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.historico-dropdown.is-open .historico-dropdown-toggle::after {
    transform: rotate(-135deg) translateY(-2px);
}

.historico-dropdown-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 136, 0.15);
}

.historico-dropdown-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 30;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.historico-dropdown.is-open .historico-dropdown-panel {
    display: block;
}

.content-section ul.historico-dropdown-menu,
.historico-dropdown-menu {
    display: block;
    position: static;
    margin: 0;
    padding: 0.45rem 0.25rem 0.45rem 0.45rem;
    list-style: none;
    background: transparent;
    max-height: calc(2.55rem * 5);
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.4;
}

.content-section .historico-dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
    position: static;
}

.content-section .historico-dropdown-menu li::before {
    content: none;
    display: none;
}

.historico-dropdown-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #222;
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 0.6rem;
    cursor: pointer;
    min-height: 2.55rem;
}

.historico-dropdown-option:hover {
    background-color: #f4fbfb;
}

.historico-dropdown-option.is-selected {
    background-color: #d8efef;
    color: #008888;
    font-weight: 600;
}

.historico-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.historico-dropdown-menu::-webkit-scrollbar-track {
    background: #ececec;
    border-radius: 999px;
    margin: 8px 2px;
}

.historico-dropdown-menu::-webkit-scrollbar-thumb {
    background: #8a8a8a;
    border-radius: 999px;
    border: 2px solid #ececec;
}

.historico-dropdown-menu::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.historico-dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #8a8a8a #ececec;
}

.historico-item {
    display: none;
}

.historico-item.is-active {
    display: flex;
}

.memoria-year-badge {
    display: inline-block;
    background-color: #FFE8DC;
    color: #E34b00;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.35rem 0.9rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    width: fit-content;
}

@media (max-width: 768px) {
    .historico-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta de nota - Guía de autor */
.guia-nota-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 5px solid #008888;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.guia-nota-card:hover {
    background-color: #eef8f8;
    border-color: #cce8e8;
    border-left-color: #006666;
    box-shadow: 0 6px 20px rgba(0, 136, 136, 0.12);
}

.guia-nota-card p {
    margin: 0;
    line-height: 1.65;
    color: #333;
}

.guia-nota-card strong {
    color: #008888;
    font-weight: 700;
}
