* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F6F0E2;
    color: #333;
}

header {
    background-color: #F6F0E2;
    padding: 20px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo img {
    height: 120px;
    width: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

nav a:hover {
    text-decoration: underline;
}

main {
    width: 100%;
}

/* Mobile First - Banner Section */
.banner-section {
    background-color: #F6F0E2;
    position: relative;
    min-height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.top-banner {
    background-color: #d32f2f;
    width: 100%;
    padding: 12px 0;
    text-align: center;
}

.banner-text {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-text h2 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.banner-text h3 {
    color: white;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 481px) {
    .banner-text {
        padding: 0 20px;
    }
    
    .banner-text h2 {
        font-size: 18px;
    }
    
    .banner-text h3 {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .banner-section {
        min-height: 700px;
    }
    
    .top-banner {
        padding: 15px 0;
    }
    
    .banner-text {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .banner-text h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .banner-text h3 {
        font-size: 18px;
    }
}

/* Mobile First - Main Content */
.main-content {
    max-width: 100%;
    margin: 30px auto 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    margin-bottom: 0;
}

.text-content {
    width: 100%;
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    max-width: 100%;
}

/* Mobile First - Title Image */
.title-image {
    width: 100%;
    height: auto;
    max-width: 50%;
    max-height: none;
    margin: 0 auto 25px auto;
    display: block;
    margin-top: 0;
    object-fit: contain;
    image-rendering: auto;
}

@media (min-width: 481px) {
    .title-image {
        max-width: 70%;
    }
}

@media (min-width: 769px) {
    .title-image {
        width: auto;
        max-width: 100%;
    }
}

.subtitle-text {
    display: none;
}

.illustration {
    display: none;
}

@media (min-width: 481px) {
    .main-content {
        margin: 40px auto 0 auto;
        padding: 0 20px;
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .main-content {
        max-width: 1400px;
        margin: 70px auto 0 auto;
        padding: 0 40px 0 40px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
        gap: 60px;
    }
    
    .text-content {
        flex: 1;
        align-self: flex-start;
    }
    
    .title-image {
        width: auto;
        max-width: 100%;
        margin: 0 auto 25px auto;
    }
    
    .subtitle-text {
        display: block;
        color: #d32f2f;
        font-size: 18px;
        line-height: 1.8;
        font-weight: 700;
        margin-top: 20px;
        margin-bottom: 0;
        padding-bottom: 0;
        text-align: center;
        position: relative;
        z-index: 4;
    }
    
    .illustration {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        z-index: 1;
        margin-top: -50px;
        align-self: flex-end;
    }
    
    .illustration img {
        max-width: 100%;
        height: auto;
        max-height: 700px;
        width: auto;
    }
}

/* Mobile First - Bottom Banner */
.bottom-banner {
    background-color: #d32f2f;
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 0;
    margin: -1px 0 0 0;
    border: none;
    outline: none;
    box-shadow: none;
    line-height: 0;
}

.date-text {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

@media (min-width: 481px) {
    .date-text {
        font-size: 16px;
        letter-spacing: 2px;
        padding: 0 20px;
    }
}

@media (min-width: 769px) {
    .bottom-banner {
        padding: 25px 0;
    }
    
    .date-text {
        max-width: 1400px;
        padding: 0 40px;
        font-size: 22px;
        letter-spacing: 3px;
        text-align: left;
    }
}

/* Mobile First - Masonry Section */
.masonry-section {
    background-color: #F6F0E2;
    padding: 30px 15px 50px;
}

/* Index gallery - 4 columns on mobile */
.masonry-section .item {
    width: 25%;
    padding: 3px;
}

@media (min-width: 481px) {
    .masonry-section {
        padding: 40px 20px 60px;
    }
}

@media (min-width: 601px) {
    .masonry-section .item {
        padding: 5px;
    }
}

@media (min-width: 901px) {
    .masonry-section .item {
        width: 33.333%;
        padding: 8px;
    }
}

@media (min-width: 1201px) {
    .masonry-section {
        padding: 60px 40px 80px;
    }
    
    .masonry-section .item {
        width: 25%;
        padding: 10px;
    }
}

.masonry-header {
    max-width: 1400px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.masonry-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.masonry-header p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.gallery-header {
    max-width: 1400px;
    margin: 0 auto 30px auto;
    text-align: center;
    padding: 40px 20px 20px;
}

.gallery-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link {
    display: inline-block;
    color: #d32f2f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.view-all-container {
    display: none;
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    width: 100%;
}

.view-all-btn {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.view-all-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.4);
}

.junta-section {
    background-color: #F6F0E2;
    padding: 80px 40px;
}

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

.junta-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.junta-members {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.junta-member {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #d32f2f;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-image-dulce img {
    object-position: center top;
}

.member-info {
    flex: 1;
}

.member-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.member-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.member-info p:last-child {
    margin-bottom: 0;
}

body:has(.about-section) {
    background-color: #FFFFFF;
}

.about-section {
    background-color: #FFFFFF;
    padding: 80px 40px;
    min-height: 100vh;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 50px;
}

.about-logo {
    text-align: center;
    margin-bottom: 40px;
}

.about-logo img {
    max-width: 200px;
    height: auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text .highlight {
    font-size: 20px;
    font-weight: 600;
    color: #d32f2f;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: #F6F0E2;
    border-left: 4px solid #d32f2f;
    border-radius: 8px;
    margin: 30px 0;
}

.about-text strong {
    color: #d32f2f;
    font-weight: 700;
}

.about-gallery {
    width: 400px;
    flex-shrink: 0;
    padding: 0;
}

.about-gallery::after {
    content: "";
    display: table;
    clear: both;
}

.about-gallery-item {
    width: 50%;
    padding: 8px;
    box-sizing: border-box;
    float: left;
}

.about-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-gallery-item img:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.retiros-gallery-section {
    background: linear-gradient(135deg, #F6F0E2 0%, #ffffff 50%, #F6F0E2 100%);
    padding: 80px 40px;
    min-height: 100vh;
}

.retiros-container {
    max-width: 1400px;
    margin: 0 auto;
}

.retiros-container h1 {
    font-size: 42px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retiros-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    font-weight: 500;
}

/* Mobile First - Retiros Grid */
.retiros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 0;
}

@media (min-width: 481px) {
    .retiros-grid {
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .retiros-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
    }
}

.retiro-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.retiro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Mobile First - Retiro Card Image */
.retiro-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 481px) {
    .retiro-card-image {
        height: 300px;
    }
}

@media (min-width: 769px) {
    .retiro-card-image {
        height: 400px;
    }
}

.retiro-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.retiro-card:hover .retiro-card-image img {
    transform: scale(1.05);
}

.retiro-card-2025 .retiro-card-image {
    align-items: flex-start;
}

.retiro-card-2025 .retiro-card-image img {
    object-position: top;
}

/* Mobile First - Retiro Card Title */
.retiro-card-title {
    padding: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    background-color: #ffffff;
    border-top: 3px solid #d32f2f;
}

@media (min-width: 481px) {
    .retiro-card-title {
        padding: 25px;
        font-size: 24px;
    }
}

@media (min-width: 769px) {
    .retiro-card-title {
        padding: 30px;
        font-size: 28px;
    }
}

.retiro-card:hover .retiro-card-title {
    color: #d32f2f;
}

.contact-section {
    background-color: #ffffff;
    padding: 80px 40px;
}

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

.contact-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.contact-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #d32f2f;
}

.contact-item p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }

    .about-container {
        padding: 40px 25px;
    }

    .about-logo img {
        max-width: 150px;
    }


    .about-content h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .about-text .highlight {
        font-size: 18px;
        padding: 15px;
        margin: 25px 0;
    }

    .about-gallery {
        width: 100%;
        padding: 20px 0;
    }

    .about-gallery-item {
        width: 50%;
    }

    .retiros-gallery-section {
        padding: 60px 20px;
    }

    .retiros-container h1 {
        font-size: 32px;
    }

    .retiros-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }


    .junta-section {
        padding: 60px 20px;
    }

    .junta-section h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .junta-members {
        gap: 40px;
    }

    .junta-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .member-image {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .member-info h3 {
        font-size: 22px;
    }

    .member-info p {
        font-size: 15px;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-section h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .contact-info {
        flex-direction: column;
        gap: 40px;
    }

    .contact-item {
        min-width: 100%;
    }

    .contact-item strong {
        font-size: 18px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 16px;
    }
}

.gallery-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    max-height: 800px;
    overflow: hidden;
}

.gallery {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.gallery-fade {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, rgba(246, 240, 226, 0) 0%, rgba(246, 240, 226, 0.5) 25%, rgba(246, 240, 226, 0.85) 60%, rgba(246, 240, 226, 1) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Mobile First - Gallery Items (4 columns on mobile) */
.item {
    width: 25%;
    padding: 3px;
    box-sizing: border-box;
    float: left;
}

@media (min-width: 601px) {
    .item {
        padding: 5px;
    }
}

@media (min-width: 901px) {
    .item {
        width: 33.333%;
        padding: 8px;
    }
}

@media (min-width: 1201px) {
    .item {
        width: 25%;
        padding: 10px;
    }
}

.item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.item img:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.gallery::after {
    content: "";
    display: block;
    clear: both;
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #d32f2f;
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s, opacity 0.3s;
    padding: 20px;
    user-select: none;
    opacity: 0.8;
}

.lightbox-nav:hover {
    color: #d32f2f;
    opacity: 1;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav.disabled:hover {
    color: #fff;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 35px;
        padding: 15px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}

.scroll-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 95%;
    }
}

.admin-page {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 40px;
}

.admin-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.admin-card h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.admin-note {
    color: #666;
    margin-bottom: 20px;
}

.admin-note code {
    background-color: #f2f2f2;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 14px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form label {
    font-weight: 600;
}

.admin-form select,
.admin-form button {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 8px;
}

.admin-form select {
    border: 1px solid #ccc;
    background-color: #fff;
}

.admin-form button {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.admin-form button:hover {
    background-color: #b71c1c;
}

.admin-messages,
.admin-results {
    background-color: #f6f0e2;
    border: 1px solid #e6dcc7;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.admin-messages p,
.admin-results p {
    margin-bottom: 6px;
}

.progress-bar-wrapper {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #d32f2f;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.progress-details {
    background-color: #f6f0e2;
    border: 1px solid #e6dcc7;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 12px;
}

.progress-details p {
    margin-bottom: 6px;
    font-size: 14px;
}

.terminal-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e1e1e;
}

.terminal-header {
    background-color: #2d2d2d;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid #444;
}

.terminal {
    height: 200px;
    overflow-y: auto;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    background-color: #1e1e1e;
    color: #d4d4d4;
}

.terminal-line {
    margin-bottom: 4px;
    word-wrap: break-word;
}

.terminal-info {
    color: #4ec9b0;
}

.terminal-success {
    color: #4ec9b0;
    font-weight: 600;
}

.terminal-warning {
    color: #dcdcaa;
}

.terminal-error {
    color: #f48771;
    font-weight: 600;
}

.terminal::-webkit-scrollbar {
    width: 8px;
}

.terminal::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.terminal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 600px) {
    .admin-page {
        padding: 0 20px;
    }

    .admin-card {
        padding: 22px;
    }
}

@media (max-width: 1080px) {
    .hamburger {
        display: flex;
    }

    .header-container {
        position: relative;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #F6F0E2;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav a {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid #e0e0e0;
    }

    nav a:hover {
        text-decoration: none;
        color: #d32f2f;
    }
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

/* Mobile First - Header adjustments */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .logo img {
        height: 60px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 12px;
        padding: 3px 6px;
    }
}

@media (min-width: 481px) {
    header {
        padding: 15px 0;
    }

    .header-container {
        flex-direction: row;
        gap: 15px;
        padding: 0 20px;
        justify-content: space-between;
    }

    .logo img {
        height: 80px;
    }
}

/* Mobile First - Masonry Header */
.masonry-header {
    max-width: 100%;
    margin: 0 auto 25px auto;
    text-align: center;
    padding: 0 15px;
}

.masonry-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.masonry-header p {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 481px) {
    .masonry-header {
        padding: 0 20px;
    }
    
    .masonry-header h2 {
        font-size: 22px;
    }
    
    .masonry-header p {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .masonry-header {
        max-width: 1400px;
        text-align: left;
        padding: 0;
    }
    
    .masonry-header h2 {
        font-size: 28px;
    }
    
    .masonry-header p {
        font-size: 16px;
    }
}

/* Mobile First - Lightbox */
.lightbox-close {
    top: 5px;
    right: 10px;
    font-size: 30px;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;
}

@media (min-width: 481px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
}

@media (min-width: 769px) {
    .lightbox-close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }
    
    .lightbox-image {
        max-width: 90%;
        max-height: 90%;
    }
}

/* Retiro 2024 Page Styles */
.retiro2024-header {
    background-color: #E6E0ED;
    padding: 20px 0;
}

.retiro2024-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.retiro2024-header .logo img {
    height: 120px;
    width: auto;
}

.retiro2024-section {
    background-color: #F6F0E2;
    padding: 60px 40px;
}

.retiro2024-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.retiro2024-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.retiro2024-left h1 {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.retiro2024-title-image {
    width: 100%;
}

.retiro2024-title-image img {
    width: 100%;
    height: auto;
    display: block;
}

.retiro2024-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.retiro2024-main-image {
    width: 100%;
}

.retiro2024-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.retiro2024-gallery-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.retiro2024-gallery-section .gallery {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.retiro2024-gallery-section .gallery.is-ready {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s;
}

.retiro2024-gallery-section .gallery .item {
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
    float: left;
}

.retiro2024-gallery-section .gallery .item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retiro2024-gallery-section .gallery .item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.retiro2024-gallery-section .gallery::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive for Retiro 2024 */
@media (max-width: 1200px) {
    .retiro2024-container {
        gap: 40px;
    }

    .retiro2024-left h1 {
        font-size: 40px;
    }

    .retiro2024-gallery-section .gallery .item {
        width: 33.333%;
    }
}

@media (max-width: 1080px) {
    .retiro2024-header .hamburger {
        display: flex;
    }

        .retiro2024-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #E6E0ED;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .retiro2024-header nav.active {
        right: 0;
    }

    .retiro2024-header nav a {
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    }

    .retiro2024-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .retiro2024-left h1 {
        font-size: 36px;
        text-align: center;
    }

    .retiro2024-title-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .retiro2024-gallery-section .gallery .item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .retiro2024-section {
        padding: 40px 20px;
    }

    .retiro2024-header .header-container {
        padding: 0 20px;
    }

    .retiro2024-header .logo img {
        height: 80px;
    }

    .retiro2024-left h1 {
        font-size: 28px;
    }

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

    .retiro2024-gallery-section .gallery .item {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .retiro2024-section {
        padding: 30px 15px;
    }

    .retiro2024-header .header-container {
        padding: 0 15px;
    }

    .retiro2024-header .logo img {
        height: 60px;
    }

    .retiro2024-left h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .retiro2024-gallery-section h2 {
        font-size: 20px;
    }

    .retiro2024-gallery-section .gallery .item {
        width: 100%;
        padding: 8px;
    }
}

/* Páginas legales */
body:has(.legal-page) {
    background-color: #FFFFFF;
}

.legal-page {
    max-width: 900px;
    margin: 60px auto 80px;
    padding: 0 40px;
    min-height: calc(100vh - 300px);
}

.legal-section {
    padding: 50px 0;
}

.legal-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: #7A3B8F;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #7A3B8F;
    text-align: center;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #7A3B8F;
}

.legal-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.legal-section ul {
    margin-bottom: 20px;
    margin-left: 20px;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.legal-section ul li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.legal-section strong {
    color: #7A3B8F;
    font-weight: 600;
}

.legal-section a {
    color: #7A3B8F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #5a2a6a;
    text-decoration: underline;
}

.legal-footer {
    background-color: #F6F0E2;
    padding: 30px 40px;
    border-top: 2px solid rgba(122, 59, 143, 0.1);
    text-align: center;
    margin-top: 60px;
}

.legal-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
}

.legal-footer-inner a {
    color: #7A3B8F;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-footer-inner a:hover {
    color: #5a2a6a;
    text-decoration: underline;
}

.legal-footer-copyright {
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

.legal-footer-inner span {
    color: #999;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .legal-page {
        margin: 40px 20px 60px;
        padding: 0 25px;
    }

    .legal-section {
        padding: 30px 0;
    }

    .legal-section h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .legal-section h2 {
        font-size: 20px;
        margin-top: 25px;
    }

    .legal-section p,
    .legal-section ul {
        font-size: 15px;
    }

    .legal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        margin: 20px 10px 40px;
        padding: 0 20px;
    }

    .legal-section {
        padding: 25px 0;
    }

    .legal-section h1 {
        font-size: 24px;
    }

    .legal-section h2 {
        font-size: 18px;
        padding-left: 10px;
    }
}
