/* ================================================================
   BRAND VARIABLES
   ================================================================ */
:root {
    --primary-green: #009a47;
    --volt-yellow: #d4e02a;
    --champagne-light: #ffefd1;

}

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

body {
    background-color: #000;
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
}



/* ================================================================
   ABOUT CONTENT (History & Gallery)
   ================================================================ */
.page-hero {
    height: 50vh;
    margin-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/nosotros/nosotros-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
}

.page-hero h1 { font-family: var(--font-heading); font-size: clamp(3rem, 8vw, 4.5rem); }

.history-section { padding: 120px 8%; background-color: #000; }

.history-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.history-accent {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

/* Vertical bar for text accent */
.history-accent::before {
    content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
    background-color: var(--primary-green);
    box-shadow: 0 0 15px var(--primary-green);
}

.industrial-frame { border-left: 10px solid var(--primary-green); overflow: hidden; }
.industrial-frame img { width: 100%; display: block; transition: 0.5s ease; }

.founder-highlight {
    /* Uses the brand green you already defined */
    color: var(--volt-yellow);

    /* Make it bold so it catches the eye */
    font-weight: 800;

    /* Keep it in the same font as your body, or switch to your
       heading font for a more 'branded' feel */
    font-family: var(--font-heading);

    /* Subtle glow so it looks like an LED indicator */
    text-shadow: 0 0 10px rgba(0, 154, 71, 0.4);

    /* Letter spacing for that technical, wide look */
    letter-spacing: 0.5px;
}



/* --- GALLERY SECTION --- */
.gallery-section {
    padding: 120px 0;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1vw;
    margin: 4vw;
}


/* --- THE CENTERED WRAPPER --- */
.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px; /* Space between big buttons and the image */
    width: 100%;
    max-width: 1300px;
}

/* --- UPDATED GALLERY ENGINE --- */
.gallery-track {
    position: relative;
/*     width: 850px; */
    width: 100%;
    max-width: 1200px;
/*     height: 500px; */
    aspect-ratio: 17/10;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.gallery-slide {
    position: absolute; /* Stack photos on top of each other */
    inset: 0;
    /*top: 0;
    left: 0;*/
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Better than display:none for stability */
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2; /* Bring the active one to the front */
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the 500px height perfectly */
    object-position: center;
    display: block;
    border-radius: 4px;
}

/* --- THE SQUARE-ROUNDED BUTTONS --- */
.gallery-btn {
    background-color: var(--primary-green);
    color: #fff;
    width: 80px;
    height: 80px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
    padding: 0; /* Remove padding that might be squishing the icon */
}

/* --- THE SVG ICON (NO STRETCH) --- */
.arrow-svg {
    width: 35px;  /* Control exact size here */
    height: 35px; /* Keep height same as width to prevent stretching */
    transition: transform 0.3s ease;
}

/* Flip the previous button arrow */
.prev-btn .arrow-svg {
    transform: rotate(180deg);
}

/* --- THE POWER-UP HOVER --- */
.gallery-btn:hover {
    background-color: var(--volt-yellow) !important;
    color: #004d23 !important;
    box-shadow: 0 0 25px rgba(212, 224, 42, 0.5);
    transform: translateY(-3px);
    border-color: #fff;
}

/* Sub-animation: Make the arrow move slightly on hover */
.next-btn:hover .arrow-svg {
    transform: translateX(5px);
}
.prev-btn:hover .arrow-svg {
    transform: rotate(180deg) translateX(5px);
}


/* Responsive */
@media (max-width: 1024px) {
    .gallery-track { width: 100%; margin: 0 20px; }
    .gallery-wrapper { gap: 15px; }
    .gallery-btn { width: 60px; height: 60px; }
}


/* Responsive Adjustments */
@media (max-width: 968px) {
    .history-container, .footer-grid { grid-template-columns: 1fr; }
    .slider-track { flex-direction: column; }
}
