:root {
    --primary: #00A6B2;
    /* Cian del logo */
    --primary-dark: #008D96;
    --secondary: #E31E24;
    /* Rojo del "CRECE" */
    --secondary-hover: #C6191F;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --modal-bg: rgba(0, 0, 0, 0.9);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
.btn {
    font-family: 'Outfit', sans-serif;
}

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

/* Typography */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
}

span {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Sticky Bar */
.donate-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.donate-bar.visible {
    transform: translateY(0);
}

.donate-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donate-bar p {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary);
}

.donate-bar span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #e0faff 0%, #ffffff 100%);
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero .logo {
    max-width: 180px;
    margin-bottom: 2rem;
    border-radius: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.subtitle {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.progress-box {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.progress-subtext {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-weight: 600;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bg {
    height: 12px;
    background: #EDF2F7;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0;
    transition: width 1.5s ease-out;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Donation Methods */
.donation-methods {
    padding: 6rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
}

.grid-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.method-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.method-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.copyable {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 1rem 0;
    cursor: pointer;
    position: relative;
}

.copyable::after {
    content: 'Click para copiar';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.copyable:hover::after {
    opacity: 1;
}

.international-info {
    text-align: center;
    margin-top: 4rem;
}

#international-details {
    margin-top: 2rem;
    background: #f1f1f1;
    padding: 2rem;
    border-radius: 15px;
    display: inline-block;
    text-align: left;
}

#international-details table {
    width: 100%;
    border-collapse: collapse;
}

#international-details td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
}

#international-details td:first-child {
    font-weight: 700;
    color: var(--primary);
}

/* Rewards Banner */
.rewards {
    padding: 4rem 0;
}

.reward-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 166, 178, 0.3);
}

.reward-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.song-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.song-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
}

.song-cover {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.song-cover:hover {
    transform: scale(1.05);
}

.song-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Evolution */
.evolution {
    padding: 6rem 0;
    background: #fff;
    text-align: center;
}

.photo-grid-evolution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.evolution-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--primary);
    text-align: center;
}

.antes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.ahora-grid {
    text-align: center;
}

.antes-grid img,
.ahora-grid img {
    width: 100%;
    border-radius: 15px;
    border: 4px solid white;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.antes-grid img {
    height: 180px;
    object-fit: cover;
}

.ahora-grid img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.antes-grid img:hover,
.ahora-grid img:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* History */
.details {
    padding: 6rem 0;
    background: var(--bg-light);
}

.accordion {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
}

.accordion-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 1.5rem 2rem;
    max-height: 500px;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

/* Carousel Section */
.support-carousel {
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 1rem;
    min-height: 250px;
    /* Asegurar altura mínima */
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-control:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.support-card {
    flex: 0 0 100%;
    padding: 3rem;
    border-left: 5px solid var(--primary);
    background: var(--bg-light);
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
}

.support-card h4 {
    margin-top: 1rem;
    color: var(--primary);
    font-style: normal;
}

/* Modal Section */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--secondary);
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

/* Disclaimer Modal Specific */
.modal-content-card {
    background: var(--white);
    margin: 10% auto;
    padding: 3rem;
    border-radius: 25px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal-btn:hover {
    color: var(--secondary);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.disclaimer-link {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.disclaimer-link a {
    color: var(--white);
    font-weight: 400;
}

.disclaimer-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .photo-grid {
        flex-direction: column;
    }

    .photo-grid img {
        height: 300px;
    }

    .photo-grid-evolution {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .antes-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}