:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --whatsapp-color: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
    max-width: 300px;
}

.logo {
    height: auto;
    width: 100%;
    max-height: 80px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
}

main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
}

.downloads-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.downloads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.download-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-icon {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.download-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.download-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #2980b9;
}

.footer-section{
    text-align: center;
}

.requirements {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.requirements h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.requirements ul {
    list-style-position: inside;
    color: var(--text-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.whatsapp-link:hover {
    color: var(--whatsapp-color);
}

.whatsapp-link i {
    font-size: 1.2rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--whatsapp-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.whatsapp-button i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .downloads-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

.social-links {
    display: none;
}

.terms-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.terms-container {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.terms-container h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.terms-container h2:first-child {
    margin-top: 0;
}

.terms-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.terms-container ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.6;
}

.terms-container li {
    margin-bottom: 0.5rem;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.final-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.terms-container strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h2 {
        font-size: 1.3rem;
    }

    .intro-text {
        font-size: 1rem;
    }
}

/* Error Pages Styles */
.error-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.error-container {
    background: var(--white);
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.error-button:hover {
    background-color: #2980b9;
}

.error-button.outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.error-button.outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.error-image {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .error-section {
        padding: 1rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
        justify-content: center;
    }
} 

.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1001; /* Por encima del header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo oscurecido */
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.modal-content img {
    width: 250px;
    height: auto;
    margin-bottom: 1rem;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover { color: #000; }
.modal-download-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.modal-download-btn:hover { background-color: #2980b9; }

/* Título del modal */
.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
