/**
 * Ediciones Anteriores - Estilos
 * Reutilizando componentes y estilos de front-page.css
 */

/* Prevenir overflow horizontal */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
}

/* Hero específico para Ediciones Anteriores */
.hero-ediciones {
    min-height: 550px;
    max-height: 550px;
    height: 550px;
}

.hero-ediciones .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.hero-pretitle {
    font-size: 18px;
    color: #E5EFF7;
    font-weight: 400;
    margin: 0;
}

.hero-ediciones h1 {
    font-size: clamp(2.5rem, 5vw, 62px);
    margin: 0;
}

.hero-subtitle {
    font-size: 24px;
    color: white;
    font-weight: 400;
    margin: 0;
    max-width: 800px;
    line-height: 1.4;
}

/* Stats Section */
.editions-stats {
    padding: 4rem 0;
    background: #E5EFF7;
    min-height: 240px;
    display: flex;
    justify-content: center;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 1200px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #9ABFDF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #061828;
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    color: #061828;
    line-height: 1.4;
}

.edition-header{
    width: 100%;
}

.edition-header h2{
    text-align: center;
    font-size: 62px;
    color: #061828;
    font-weight: bold;
}

.edition-header p{
    text-align: center;
    font-size: 32px;
    color: #061828;
    margin-bottom: 4rem;
}

.chip{
    background: #E5EFF7;
    border-radius: 50px;
    padding: 0.55rem 2rem;
    max-width: fit-content;
    font-size: 14px;
}

.chip svg{
    margin-right: 0.5rem;
}

/* Edition Sections */
.edition-section {
    padding: 6rem 0;
    background: white;
}

.edition-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edition-badge {
    background: #E5EFF7;
    border-radius: 50px;
    padding: 0.55rem 2rem;
    margin-bottom: 3rem;
    max-width: fit-content;
}

.edition-badge span {
    font-size: 24px;
    color: #061828;
    font-weight: 400;
}

.edition-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.center-title{
    text-align: center;
    font-size: 62px;
    color: #061828;
    font-weight: bold;
    margin-bottom: 4rem;
}

.edition-image {
    border-radius: 51px;
    overflow: visible;
    height: 700px;
    position: relative;
}

.edition-image > img:first-child {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 51px;
}

.edition-image-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 280px;
    height: 200px;
    border-radius: 20px;
    border: 5px solid #E30613;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.edition-info h2 {
    font-size: clamp(2rem, 4vw, 62px);
    font-weight: 700;
    color: #061828;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.edition-subtitle {
    font-size: clamp(1.25rem, 2vw, 32px);
    color: #061828;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.edition-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.edition-description {
    font-size: 18px;
    font-weight: 300;
    color: #061828;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ABFDF;
    font-size: 16px;
}

.meta-item svg {
    flex-shrink: 0;
}

.edition-topics {
    margin-bottom: 2.5rem;
}

.edition-keys {
    margin-bottom: 2.5rem;
}

.edition-keys ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edition-keys li {
    font-size: 18px;
    font-weight: 300;
    color: #061828;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.edition-keys li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #1D70B7;
}

.topics-label {
    display: block;
    font-size: 16px;
    color: #9ABFDF;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.edition-topics ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.edition-topics li {
    font-size: 16px;
    color: #061828;
    padding-left: 1.25rem;
    position: relative;
}

.edition-topics li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Edition Reverse Layout */
.edition-reverse .edition-info {
    order: 2;
}

.edition-reverse .edition-image {
    order: 1;
}

.edition-reverse .edition-info h2 {
    font-size: clamp(2rem, 4vw, 62px);
}

.edition-reverse .edition-subtitle {
    font-size: clamp(1.25rem, 2vw, 32px);
}

.edition-reverse .meta-item {
    font-size: 14px;
}

.edition-reverse .meta-item svg {
    width: 14px;
    height: 14px;
}

.edition-reverse .topics-label {
    font-size: 14px;
}

.edition-reverse .edition-topics li {
    font-size: 14px;
}

/* Gallery Section */
.editions-gallery {
    padding: 6rem 0;
    background: var(--bg-light);
}

.editions-gallery .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    box-sizing: border-box;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, max-height 0.5s ease;
}

.gallery-item-hidden {
    display: none;
}

.gallery-expanded .gallery-item-hidden {
    display: block;
    animation: fadeInGallery 0.5s ease forwards;
}

@keyframes fadeInGallery {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-cta {
    text-align: center;
}

/* CTA Section */
.editions-cta {
    padding: 5rem 0;
    background: var(--color-primary);
    text-align: center;
    color: white;
}

.cta-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1240px) {
    .stats-grid {
        width: auto;
        max-width: 1200px;
        padding: 0 2rem;
        gap: 1.5rem;
    }
    
    .edition-section .container {
        padding: 0 2rem;
    }
    
    .sponsors-grid {
        gap: 2rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        flex-wrap: wrap;
        gap: 3rem 2rem;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: 280px;
    }
    
    .edition-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .edition-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .edition-reverse .edition-content {
        grid-template-columns: 1fr;
    }
    
    .edition-reverse .edition-info {
        order: 0;
    }
    
    .edition-reverse .edition-image {
        order: 0;
    }
    
    .sponsors-grid {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-ediciones {
        min-height: 450px;
        max-height: 450px;
        height: 450px;
    }
    
    .hero-pretitle {
        font-size: 16px;
    }
    
    .hero-ediciones h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 18px;
        padding: 0 1rem;
    }
    
    .editions-stats {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .stats-grid {
        padding: 0 1.5rem;
        gap: 2.5rem 1.5rem;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: 240px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 16px;
    }
    
    .edition-section {
        padding: 3rem 0;
    }
    
    .edition-section .container {
        padding: 0 1.5rem;
    }
    
    .edition-badge {
        padding: 0.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .edition-badge span {
        font-size: 18px;
    }
    
    .edition-content {
        gap: 2rem;
    }
    
    .edition-image {
        border-radius: 32px;
    }
    
    .edition-info h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .edition-subtitle {
        font-size: clamp(1.125rem, 3vw, 1.5rem);
        margin-bottom: 1.5rem;
    }
    
    .edition-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .edition-topics ul {
        grid-template-columns: 1fr;
    }
    
    .edition-image-overlay {
        right: 0;
    }
    
    .editions-gallery .container {
        padding: 0 1.5rem;
    }
    
    .sponsors-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .sponsor-logos-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sponsor-logo img {
        max-width: 140px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .hero-ediciones {
        min-height: 400px;
        max-height: 400px;
        height: 400px;
    }
    
    .hero-pretitle {
        font-size: 14px;
    }
    
    .hero-ediciones h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        flex: 1;
        max-width: 100%;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 17px;
    }
    
    .edition-section .container {
        padding: 0 1rem;
    }
    
    .edition-image {
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .hero-ediciones {
        min-height: 350px;
        max-height: 350px;
        height: 350px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .editions-stats {
        padding: 2.5rem 0;
    }
    
    .stats-grid {
        gap: 2rem;
    }
    
    .editions-gallery .container {
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-right {
        align-items: center;
        width: 100%;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

/* Button Styles */
.btn {
    padding: 0.75rem 2.5rem;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 250px;
    height: 250px;
}

.btn-outline {
    background: transparent;
    color: #061828;
    border: 1px solid #061828;
}

.btn-outline:hover {
    background: #061828;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 24, 40, 0.2);
}

/* Sponsors Section */
.landing-sponsors {
    padding: 4rem 0;
    background: #E5EFF7;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.sponsor-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sponsor-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #061828;
    text-align: center;
    margin: 0;
}

.sponsor-logos-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

/* Footer Styles */
.site-footer {
    background: #1D70B7;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-logo img {
    max-height: 80px;
    width: auto;
    height: auto;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social a {
    color: white;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 14px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-nav span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}
