/* Modern Index Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-red: #aa0000;
    --primary-red-hover: #cc0000;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Container for main content */
.main-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Cambiado de center a flex-start */
    /* min-height: 80vh; Removed to avoid excessive spacing with large logo */
    gap: 2rem;
    padding-bottom: 2rem;
}

/* Header & Logo */
.header-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.logo-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.logo-img:hover {
    transform: scale(1.01);
}

/* Navigation Menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 10px;
}

.menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--primary-red) 0%, #880000 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(145deg, var(--primary-red-hover) 0%, #aa0000 100%);
    color: white;
}

.menu-item:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

/* Footer Wrapper */
.footer-wrapper {
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* Hide annoying BRs from included php */
.footer-wrapper br {
    display: none;
}

/* Override footer inline styles if possible or just mitigate */
.footer-wrapper div[style] {
    background-color: transparent !important;
    /* Try to override gray box */
    max-width: 100% !important;
}

.footer-wrapper a {
    color: #666 !important;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 500;
}

.footer-wrapper a:hover {
    color: var(--primary-red) !important;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .main-container {
        max-width: 500px;
    }

    .menu-item {
        font-size: 1.2rem;
        padding: 1.4rem;
    }

    /* Wider container for legal text */
    .legal-container {
        max-width: 800px !important;
    }
}

/* Legal Content Styles */
.legal-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.legal-content h2 {
    color: #444;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #555;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #555;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 20px;
    background-color: #666;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}

.back-button:hover {
    background-color: var(--primary-red);
    text-decoration: none;
    color: white;
}