/* ==========================================
   ESTILOS PERSONALIZADOS PARA INDEX.PHP
   Extraído del inline CSS para mejorar rendimiento
   ========================================== */

.title-red {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: red;
    text-shadow: 2px 2px 4px black;
}

.ci-text h5 {
    color: #000;
    font-size: 16px;
}

.ci-name {
    color: #333;
    font-size: 14px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Contenedor principal centrado */
.ci-text {
    text-align: center;
    margin-bottom: 15px;
}

/* Botón estilizado */
.ci-text a {
    display: inline-block;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Efecto hover del botón */
.ci-text a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

/* Imagen con margen */
.ci-text img {
    max-width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

.about-section {
    background-color: #0d0d0d;
    padding: 80px 0;
    color: #FFFFFF;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFA500;
}

.about-title {
    color: #FFA500;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.5px;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 25px 0;
    text-align: justify;
    color: rgba(255, 255, 255, 0.9);
}

.about-text.about-final {
    text-align: center;
    font-size: 18px;
    margin-top: 35px;
    padding: 20px;
    background: rgba(255, 165, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid #FFA500;
}

/* Estilos para resaltar palabras clave - Versión sobria */
.highlight-primary {
    color: #FFA500;
    font-weight: 700;
}

.highlight-secondary {
    color: #FFA500;
    font-weight: 700;
}

.highlight-city {
    color: #FFA500;
    font-weight: 600;
}

.highlight-sport {
    font-weight: 600;
}

.highlight-encounter {
    font-style: italic;
    font-weight: 600;
}

.highlight-values {
    font-style: italic;
}

.highlight-essence {
    font-style: italic;
}

.highlight-experience {
    color: #FFA500;
    font-weight: 700;
}

.highlight-quote {
    font-style: italic;
    font-weight: 600;
    padding: 8px 15px;
    display: inline-block;
    border-left: 3px solid #FFA500;
    background: rgba(255, 165, 0, 0.05);
    margin: 5px 0;
}

.highlight-number {
    color: #FFA500;
    font-weight: 800;
}

.highlight-sponsors {
    font-weight: 700;
}

.highlight-benefits {
    font-style: italic;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }

    .about-title {
        font-size: 28px !important;
        letter-spacing: 0.5px;
    }

    .about-content {
        padding: 0 15px;
    }

    .about-text {
        font-size: 16px !important;
        line-height: 1.7;
        text-align: justify;
    }

    .about-text.about-final {
        font-size: 17px;
        padding: 20px;
    }

    .highlight-quote {
        padding: 6px 12px;
        display: block;
        margin: 10px 0;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }

    .about-title {
        font-size: 22px !important;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .about-content {
        padding: 0 12px;
    }

    .about-text {
        font-size: 15px !important;
        line-height: 1.6;
    }

    .about-text.about-final {
        font-size: 16px;
        padding: 15px;
    }

    .highlight-number {
        font-size: 1.05em;
    }
}

.ciudad {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6600;
}

.header h1 {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logos img {
    width: 60px;
    margin-left: 10px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.galeria img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

p {
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
}

/* Sección con imagen de fondo */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    height: 500px;
    width: 100%;
}

/* Título */
.hs-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Botón llamativo con destello naranja */
.animated-button {
    background: linear-gradient(45deg, #ff6600, #ff3300);
    border: none;
    color: white;
    font-size: 20px;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(255, 102, 0, 0.5);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: destello-naranja 2s infinite;
}

/* Botón llamativo con destello azul */
.animated-button1 {
    background: linear-gradient(45deg, rgb(0, 30, 255), rgb(100, 102, 223));
    border: none;
    color: white;
    font-size: 20px;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 30, 255, 0.5);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: destello-azul 2s infinite;
}

/* Efecto de animación */
.animated-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(255, 102, 0, 0.7);
}

.animated-button1:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(1, 8, 41, 0.7);
}

/* Efecto de pulsación */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulsate {
    animation: pulse 1s infinite;
}

/* Animación de destello para botón naranja */
@keyframes destello-naranja {
    0%, 100% {
        box-shadow: 0px 4px 15px rgba(255, 102, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0px 8px 30px rgba(255, 102, 0, 1),
                    0px 0px 40px rgba(255, 153, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Animación de destello para botón azul */
@keyframes destello-azul {
    0%, 100% {
        box-shadow: 0px 4px 15px rgba(0, 30, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0px 8px 30px rgba(0, 30, 255, 1),
                    0px 0px 40px rgba(100, 102, 223, 0.8);
        transform: scale(1.05);
    }
}

/* Sección de Inscripciones debajo del Hero */
.inscripciones-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.inscripciones-section .animated-button,
.inscripciones-section .animated-button1 {
    margin: 10px 15px;
    display: inline-block;
}

/* ==========================================
   FOOTER MODERNO V2 - DISEÑO CON CARDS
   ========================================== */

.footer-modern-v2 {
    background: #0d0d0d;
    color: #fff;
    padding: 50px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Logo Section */
.footer-logo-box {
    background: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 25px;
}

.footer-logo-box img {
    height: 45px;
    width: auto;
}

/* Headings */
.footer-heading {
    color: #e8a020;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
}

.contact-item i {
    color: #e8a020;
    width: 20px;
    margin-right: 12px;
    font-size: 14px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e8a020;
}

.contact-item span {
    color: #ccc;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(232, 160, 32, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8a020;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #e8a020;
    color: #000;
    transform: scale(1.1);
}

/* Evento Cards */
.evento-card {
    background: rgba(232, 160, 32, 0.08);
    border-left: 3px solid #e8a020;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.evento-card h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.btn-inscripcion {
    background: linear-gradient(135deg, #e8a020, #d4911a);
    color: #000;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-inscripcion:hover {
    background: linear-gradient(135deg, #f0b030, #e8a020);
    transform: translateX(3px);
    color: #000;
}

.btn-inscripcion .badge {
    background: #000;
    color: #e8a020;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-left: auto;
}

.email-contacto {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.email-contacto:hover {
    color: #e8a020;
}

.email-contacto i {
    font-size: 12px;
}

/* Aliados Grid */
.aliados-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.aliado-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.aliado-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8a020;
}

.aliado-item i {
    color: #e8a020;
}

/* Footer Bottom */
.footer-bottom-v2 {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-v2 p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.footer-credits {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.footer-credits a {
    color: #e8a020;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-credits a:hover {
    color: #f0b030;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-logo-box {
        margin: 0 auto 25px;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .aliados-grid {
        justify-content: center;
    }

    .footer-bottom-v2 {
        flex-direction: column;
        text-align: center;
    }

    .btn-inscripcion {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-modern-v2 {
        padding: 35px 15px 20px;
    }

    .footer-logo-box img {
        height: 35px;
    }

    .footer-heading {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .contact-item {
        font-size: 13px;
    }

    .evento-card h4 {
        font-size: 13px;
    }

    .btn-inscripcion {
        font-size: 12px;
        padding: 8px 12px;
    }

    .footer-bottom-v2 p,
    .footer-credits {
        font-size: 11px;
    }
}

.email-link {
    text-decoration: none;
    color: inherit;
    font-weight: normal;
}

.email-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Estilos para el mensaje dinámico */
#mensaje {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 9999;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid #c3e6cb;
    background-color: #d4edda;
    color: #155724;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}

/* Estilos para mensajes de error */
#mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

#mensaje:empty {
    display: none;
}

/* Sección de auspiciantes centrada y con ancho máximo */
.auspiciantes {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
}

/* Título encima de la imagen */
.auspiciantes h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Recuadro que envuelve la imagen con fondo degradado */
.auspiciantes .recuadro {
    background: linear-gradient(90deg, #f47c00, #ff0000);
    padding: 10px;
    border-radius: 10px;
    width: 300px;
    display: inline-block;
}

/* Estilo para la imagen interna */
.auspiciantes .recuadro img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 300px;
    border-radius: 5px;
}

.auspiciante-img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 576px) {
    .auspiciante-container {
        flex-direction: column;
        gap: 10px;
    }

    .auspiciante-img {
        max-width: 100%;
    }

    .ciudad .header h1 {
        font-size: 18px;
    }

    .ciudad .logos img {
        width: 35px;
    }

    .auspiciantes .recuadro {
        width: 95%;
        padding: 5px;
    }

    .auspiciantes .recuadro img {
        width: 100%;
    }
}

/* Media queries mejoradas para móviles */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        height: 400px;
    }

    .inscripciones-section {
        padding: 40px 15px;
    }

    /* Botones */
    .animated-button,
    .animated-button1 {
        font-size: 16px;
        padding: 12px 25px;
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }

    /* About Section */
    .about-section {
        padding: 50px 15px;
    }

    .about-title {
        font-size: 26px !important;
    }

    .about-text {
        font-size: 16px !important;
        padding: 0 10px;
        text-align: justify;
    }

    .about-content {
        padding: 0 10px;
    }

    /* Ciudad */
    .ciudad {
        margin: 15px 10px;
        padding: 15px;
    }

    .ciudad .header {
        flex-direction: column;
        text-align: center;
    }

    .ciudad .header h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .ciudad .logos {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .ciudad .logos img {
        width: 45px;
        margin: 0;
    }

    .ciudad .galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ciudad p {
        font-size: 14px;
        text-align: justify;
    }

    /* Auspiciantes */
    .auspiciantes {
        padding: 15px;
        margin: 20px 10px;
    }

    .auspiciantes h2 {
        font-size: 1.5rem;
    }

    .auspiciantes .recuadro {
        width: 90%;
        max-width: 280px;
    }

    /* Footer ajustes */
    .footer-section {
        padding: 35px 15px;
    }

    .fs-logo .logo img {
        max-width: 130px;
    }

    .fs-widget h4 {
        font-size: 16px;
    }

    .co-text p {
        font-size: 12px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    /* Hero más compacto */
    .hero-section {
        height: 300px;
    }

    .inscripciones-section {
        padding: 30px 10px;
    }

    .animated-button,
    .animated-button1 {
        font-size: 14px;
        padding: 10px 20px;
        max-width: 220px;
    }

    /* About más compacto */
    .about-section {
        padding: 35px 10px;
    }

    .about-title {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .about-text {
        font-size: 14px !important;
        text-align: justify;
        line-height: 1.6;
    }

    .about-content {
        padding: 0 8px;
    }

    .about-text.about-final {
        font-size: 15px;
        padding: 12px;
    }

    /* Ciudad */
    .ciudad {
        margin: 10px 5px;
        padding: 10px;
    }

    .ciudad .header h1 {
        font-size: 18px;
    }

    .ciudad .logos img {
        width: 35px;
    }

    .ciudad .galeria {
        grid-template-columns: 1fr;
    }

    .ciudad p {
        font-size: 13px;
    }

    /* Auspiciantes */
    .auspiciantes h2 {
        font-size: 1.2rem;
    }

    .auspiciantes .recuadro {
        width: 95%;
        padding: 5px;
    }

    /* Footer */
    .fs-logo .logo img {
        max-width: 110px;
    }

    .fs-widget h4 {
        font-size: 14px;
    }

    .fs-logo ul li,
    .fs-widget ul li {
        font-size: 11px;
    }

    .auspiciante-img {
        max-width: 110px;
    }

    /* WhatsApp button */
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
    }

    .whatsapp-float img {
        width: 45px;
        height: 45px;
    }
}
