/* =======================================================
    INDEX.CSS
   ======================================================= */

/* ============= HERO SECTION ============= */
.hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Imagen del drone - ACTUALIZADA 50% MÁS GRANDE */
.drone-image {
    margin-bottom: 2rem;
}

.drone-img {
    max-width: 450px;
    /* Cambiado de 300px a 450px (50% más grande) */
    width: 100%;
    /* Para que sea responsive */
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Título del hero */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content span {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: var(--font-secondary);
}

/* Botones del hero */
.hero-actions {
    margin-top: 2rem;
}

.btn-large {
    padding: 1.2rem 2.5rem 1.2rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-large i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--color-accent-dark);
    gap: 1rem;
}

.btn-large:hover i {
    transform: scale(1.1);
}

/* ============= SECCIÓN CARTEL OFICIAL ============= */
.poster-section {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.poster-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.poster-thumbnail {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.poster-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.poster-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.poster-img:hover {
    transform: scale(1.02);
}

.poster-info {
    padding: 0.5rem;
}

.poster-info h3 {
    font-size: 1.5rem;
    color: var(--color-accent-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.poster-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.poster-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.poster-highlights li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.poster-highlights li strong {
    color: var(--color-text);
    margin-right: 0.25rem;
}

.poster-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    gap: 0.75rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============= SECCIÓN CARTEL DRONES ============= */
.drones-poster-section {
    padding: 4rem 0;
    background-color: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.drones-poster-container {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.drones-poster-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

.drones-poster-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.drones-poster-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============= INFO SECTION ============= */
.info-section {
    padding: 3rem 0;
    background-color: var(--color-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-content h3 {
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-content p {
    color: var(--color-text);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* ============= SECCIÓN ORGANIZADORES ============= */
.organizadores-section {
    padding: 3rem 0;
    background-color: var(--color-navbar-bg);
}

.organizadores-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-accent-dark);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.organizadores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.organizador-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 150px;
    /* Altura fija para mantener uniformidad */
}

.organizador-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.organizador-logo {
    max-width: 100%;
    max-height: 100px;
    /* Altura máxima para todos los logos */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Mantiene la proporción de los logos */
    filter: grayscale(100%);
    transition: filter var(--transition);
}

.organizador-item:hover .organizador-logo {
    filter: grayscale(0%);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 992px) {
    .poster-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .poster-thumbnail {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content span {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .drone-img {
        max-width: 300px;
        /* Cambiado de 200px a 300px (50% más grande en móvil) */
    }

    .btn-large {
        padding: 1rem 2rem 1rem 1.5rem;
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .btn-large:hover {
        gap: 0.75rem;
    }

    /* Sección cartel */
    .poster-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .poster-img {
        max-width: 300px;
    }

    .poster-info h3 {
        font-size: 1.3rem;
    }

    .poster-actions {
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .info-section {
        padding: 2rem 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-item {
        padding: 1.5rem;
        text-align: center;
        flex-direction: column;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Responsive para organizadores */
    .organizadores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .organizador-item {
        height: 130px;
        padding: 1rem;
    }

    .organizador-logo {
        max-height: 80px;
    }

    .organizadores-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .drone-img {
        max-width: 225px;
        /* Cambiado de 150px a 225px (50% más grande en móvil pequeño) */
    }

    .btn-large {
        padding: 0.875rem 1.5rem 0.875rem 1.25rem;
        font-size: 1rem;
    }

    /* Sección cartel */
    .section-title {
        font-size: 1.6rem;
    }

    .poster-img {
        max-width: 280px;
    }

    .poster-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .poster-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .info-item {
        padding: 1.25rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon i {
        font-size: 1.25rem;
    }

    /* Responsive para organizadores en móviles pequeños */
    .organizadores-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .organizador-item {
        height: 120px;
    }

    .organizador-logo {
        max-height: 70px;
    }

    .organizadores-title {
        font-size: 1.5rem;
    }
}

/* Efectos de animación adicionales */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones a elementos específicos */
.drone-image {
    animation: fadeIn 0.8s ease-in;
}

.hero-title {
    animation: fadeIn 0.8s ease-in 0.2s both;
}

.hero-actions {
    animation: fadeIn 0.8s ease-in 0.4s both;
}

.poster-section {
    animation: fadeIn 0.8s ease-in 0.6s both;
}

.info-item:nth-child(1) {
    animation: fadeIn 0.8s ease-in 0.8s both;
}

.info-item:nth-child(2) {
    animation: fadeIn 0.8s ease-in 1s both;
}

.organizadores-section {
    animation: fadeIn 0.8s ease-in 1.2s both;
}

/* ============= BANNER DE ACTUALIZACIÓN PERMANENTE ============= */
.update-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    color: white;
    padding: 1rem 0;
    border-bottom: 3px solid #ff5252;
    position: relative;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(238, 82, 83, 0.4);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.update-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.update-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.update-icon i {
    font-size: 1.6rem;
    color: white;
}

.update-text {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.update-label {
    background-color: white;
    color: #ee5253;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.update-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.date-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.date-item strong {
    font-weight: 600;
    margin-right: 0.2rem;
}

.highlight-date {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.update-actions {
    display: flex;
    align-items: center;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: white;
    color: #ee5253;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-register i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    gap: 1rem;
    background-color: #fff9f9;
}

.btn-register:hover i {
    transform: scale(1.1);
}

.btn-register:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive para el banner */
@media (max-width: 992px) {
    .update-banner-content {
        gap: 1.5rem;
    }
    
    .update-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .update-banner {
        padding: 1.2rem 0;
    }

    .update-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }

    .update-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.2rem;
    }

    .update-icon i {
        font-size: 1.4rem;
    }

    .update-text {
        align-items: center;
        width: 100%;
    }

    .update-label {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .update-dates {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .date-item {
        width: 100%;
        justify-content: center;
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .update-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-register {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .update-banner {
        padding: 1rem 0;
    }

    .date-item {
        font-size: 0.9rem;
        flex-wrap: wrap;
        text-align: center;
        padding: 0.8rem;
    }

    .date-item strong {
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .date-item i {
        display: none; /* Ocultar iconos en móviles muy pequeños para ahorrar espacio */
    }

    .highlight-date {
        width: 100%;
        font-size: 1.1rem;
    }

    .btn-register {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }
}

/* Animación adicional para llamar la atención */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(238, 82, 83, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(238, 82, 83, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(238, 82, 83, 0.4);
    }
}

.update-banner {
    animation: slideDown 0.5s ease-out, subtle-pulse 3s infinite;
}