/* =========================================
   Nuestra Historia Section
   ========================================= */

.history-section {
    position: relative;
    background: linear-gradient(180deg, #111 0%, #1a1a1a 100%);
    padding: 140px 0 4rem 0;
    overflow: hidden;
    text-align: left;
}

.history-section .container {
    position: relative;
    z-index: 2;
}

/* Title Styles */
.history-title {
    font-size: 4.5rem;
    text-align: center;
    color: var(--secondary-color);
    text-shadow:
        4px 4px 0 #000,
        8px 8px 0 var(--primary-color);
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
    transform: rotate(-3deg) translateY(-10px);
    display: block;
    width: fit-content;
    margin: 0 auto 4rem auto;
    padding: 0.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-color);
    box-shadow: 5px 5px 0 #000;
}

/* Grid Layout */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

/* Image Column */
.history-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.img-wrapper {
    position: relative;
    width: 100%;
    /* Aumentado de 500px a 700px para hacerla más grande */
    max-width: 700px;
    /* Eliminado padding, background y border radius del wrapper */
    padding: 0;
    background: transparent;
    border-radius: 20px;
    /* Eliminada la rotación y sombra del contenedor */
    transform: none;
    transition: all 0.5s ease;
    box-shadow: none;
}

.img-wrapper:hover {
    /* Efecto hover más sutil, solo escala */
    transform: scale(1.02);
    box-shadow: none;
}

/* Eliminado el borde neón (::before) */
.img-wrapper::before {
    display: none;
}

.history-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    filter: contrast(1.1) brightness(1.1);
}

/* Text Column */
.history-text-container {
    color: #e0e0e0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

.history-text-container p {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.history-text-container p:nth-child(1) {
    animation-delay: 0.2s;
}

.history-text-container p:nth-child(2) {
    animation-delay: 0.4s;
}

.history-text-container p:nth-child(3) {
    animation-delay: 0.6s;
}

.history-text-container strong {
    color: var(--primary-color);
    font-weight: bold;
}

/* Slogan */
.slogan-wrapper {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.8s;
}

.history-slogan {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
    line-height: 1.2;
    transform: skew(-5deg);
}

/* Neon Separator */
.neon-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 5rem;
    opacity: 0.8;
}

.neon-separator .line {
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--primary-color);
}

.neon-separator .glow-point {
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-color), 0 0 30px var(--secondary-color);
    animation: pulse 2s infinite ease-in-out;
}

/* Animations */
@keyframes borderGlow {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .history-text-container {
        text-align: center;
        padding: 0 1rem;
    }

    .img-wrapper {
        margin: 0 auto;
        transform: rotate(0deg);
        max-width: 90%;
    }

    .history-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        transform: none;
        /* Reset rotation */
        width: auto;
        display: inline-block;
        white-space: normal;
    }

    .history-slogan {
        font-size: 2rem;
    }
}