/* Base Styles */
:root {
    --primary: #d92020;
    --primary-hover: #b81c1c;
    --secondary: #26dcc4;
    /* Cambiado de #00c2cb a #26dcc4 */
    --secondary-hover: #20b8a4;
    /* Ajustado para el nuevo color */
    --text: #4f4f4f;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f7f7f7;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    /* Evitar scroll horizontal */
}

img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}
.container-header{
    width: 100%;
    
    margin: 0 auto;
    padding: 0 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: rgba(217, 32, 32, 0.85);
    /* Agregamos transparencia */
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.75rem 2rem;
    /* Reducimos el padding */
    font-size: 1.1rem;
    /* Reducimos el tamaño de fuente */
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-outline {
    background-color: var(--white);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-outline:hover {
    background-color: var(--gray-100);
}

.btn-full {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.title-box {
    display: inline-block;
    background-color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transform: rotate(1deg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.title-box h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

.divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--text);
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    /* Asegura que el logo esté completamente a la izquierda */
}

.logo img {
    height: 3rem;
    width: auto;
    /* Mantenemos el color original del logo */
}

.desktop-menu {
    display: none;
}

.desktop-menu ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.menu-link {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu li {
    text-align: center;
    padding: 0.5rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    width: 100%;
    /* Eliminamos min-height para que se ajuste al contenido */
}

.hero-banner {
    width: 100vw;
    /* Ancho completo de la ventana */
    margin-left: calc(-50vw + 50%);
    /* Centrar cuando está dentro de un contenedor */
    text-align: center;
    /* Eliminamos position absolute y z-index para que no ocupe todo el espacio */
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    /* Eliminamos object-fit para que mantenga su relación de aspecto natural */
}

.hero-content {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    padding: 2rem 0;
}

/* About Us Section */
.about-us {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.dots-pattern {
    position: absolute;
    width: 8rem;
    height: 8rem;
    opacity: 0.1;
    pointer-events: none;
}

.top-left {
    top: 10%;
    left: 5%;
}

.bottom-right {
    bottom: 20%;
    right: 10%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    position: relative;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(1deg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comic-splash {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 8rem;
    height: 8rem;
    z-index: 10;
}

.about-text {

    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.lightning-small {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 4rem;
    height: 4rem;
    z-index: 10;
}

.about-text h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: rotate(-1deg);
}

.stat-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.red {
    background-color: var(--primary);
}

.teal {
    background-color: var(--secondary);
}

.stat-circle span {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-box h4 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Registration Section */
.registration {
    padding: 5rem 0;
    background-color: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.comic-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.lightning-bg,
.comic-burst-bg {
    position: absolute;
    opacity: 0.2;
    pointer-events: none;
}

.lightning-bg {
    top: 5%;
    right: 5%;
    width: 8rem;
    height: 12rem;
}

.comic-burst-bg {
    bottom: 10%;
    left: 5%;
    width: 12rem;
    height: 12rem;
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.registration-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.comic-pow-small {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 6rem;
    height: 6rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comic-pow-small span {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    transform: rotate(-12deg);
}

.registration-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-number span {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h4 {
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.registration-button {
    margin-top: 2rem;
    text-align: center;
}

.registration-image {
    position: relative;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(-1deg);
}

.registration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comic-splash-small {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8rem;
    height: 8rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comic-splash-small span {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    transform: rotate(12deg);
}

.registration-help {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-top: 4rem;
}

.registration-help h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.registration-help p {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.help-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(38, 220, 196, 0.2);
    /* Actualizado para el nuevo color */
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 1.25rem;
}

.info-item h4 {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icon i {
    color: var(--white);
    font-size: 1.25rem;
}

.social-icon:hover {
    background-color: var(--secondary-hover);
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--gray-200);
}

/* Acompañan Section */
.acompañan {
    padding: 4rem 0;
    background-color: var(--gray-100);
}

.acompañan-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.friend-box {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 8rem;
}

.friend-box img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.acompaña-cta {
    margin-top: 3rem;
    text-align: center;
}

.acompaña-cta h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.acompaña-cta p {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--text);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 2.5rem;
    width: auto;
    /* Aplicamos filtro para que el logo se vea blanco en el footer */
    filter: brightness(0) invert(1);
    background-color: transparent;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 2rem;
    text-align: center;
}



/* Media Queries */
@media (min-width: 320px) {
    .title-box h2 {

        font-size: 1rem;
    }
    .container-header{
        width: 95%;
    }

   

}

@media (max-width: 768px) {
    .about-us {
        padding: 1rem 0;
    }

}

@media (min-width: 640px) {
    .btn-large {
        padding: 0.75rem 2rem;
        /* Mantenemos el botón más pequeño */
        font-size: 1.1rem;
    }

    .help-buttons {
        flex-direction: row;
    }
    .container-header{
        width: 95%;
    }
}

@media (min-width: 768px) {
    .desktop-menu {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-button {
        display: none;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .acompañan-grid {
        grid-template-columns: repeat(3, 1fr);
    }

   
}

@media (min-width: 1024px) {
   

    .title-box h2 {

        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .registration-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .acompañan-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Centered menu for desktop */
@media (min-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-menu {
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }

    .desktop-menu ul {
        justify-content: center;
    }
}

/* Dropdown exclusivo para escritorio */
.dropdown {
    position: relative;
}
/* Flechita ▼ */
.dropdown::after {
    content: " ▼";
}
.dropdown a{
    cursor: pointer;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    min-width: 12rem;
    padding: 0.5rem 0;
    gap: 0.5rem !important;
}

.dropdown-menu li a {
    padding: 0.75rem 1rem;
    display: block;
    color: var(--text);
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.dropdown:hover .dropdown-menu {
    display: flex !important;
}
