@import url('/CSS/responsive.css');

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

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

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   NAVBAR - NAVIGATION
   ======================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 100px;
    border-radius: 50px;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 70px;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #333;
    margin: 15px;
    text-align: center;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    background: transparent;
    white-space: nowrap;
}

.navbar a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.navbar a:not(:hover) {
    background: transparent;
    color: #333;
}

.navbar .logo {
    padding: 0; 
    margin: 0;
    background: none !important;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 60px;
    width: auto;
    display: block;
}

.navbar .logo:hover {
    background: none !important;
    color: inherit;
}

/* Dropdown Principal */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    text-align: left;
}

.navbar li.dropdown-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    white-space: nowrap;
    margin: 0;
    position: relative;
}

.dropdown a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Dropdown secundario para BISAGRAS */
.dropdown-item {
    position: relative;
}

.subdropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.dropdown-item.subdropdown-open > .subdropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.subdropdown a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 0;
    white-space: nowrap;
}

.subdropdown a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* ========================================
   HEADER SECTION
   ======================================== */

.header-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portada-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    text-align: center;
    line-height: 1.4;
    max-width: 1000px;
    padding: 0 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-title .highlight {
    font-weight: 700;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.flecha-img {
    width: 200vh;
    height: 80px;
    margin-bottom: -50px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

/* ========================================
   SECCIÓN SOBRE NOSOTROS
   ======================================== */

.sobre-nosotros-section {
    width: 100%;
    min-height: 200vh;
    display: flex;
    align-items: stretch;
    background: white;
    position: relative;
}

.dual-content {
    display: flex;
    width: 100%;
    min-height: 200vh;
    position: relative;
}

.dual-content.reverse {
    flex-direction: row-reverse;
}

/* Contenedor de imágenes sticky */
.left-content {
    flex: 1;
    position: relative;
    background: none;
}

.image-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.left-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Forzar la primera imagen visible desde el inicio */
.image-sticky-container img:first-child {
    opacity: 1;
    z-index: 2;
}

.left-content img.active {
    opacity: 1;
    z-index: 3;
}

/* Contenedor de textos */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.text-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 100px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
}

.section-description p {
    margin-bottom: 20px;
}

.section-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer-red {
    background: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 8px 0 0 0;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    z-index: 101;
    margin: 0;
    flex-shrink: 0;
}

/* Eliminar padding/margin en desktop para sobre-nosotros */
@media (min-width: 1201px) {
    .header-section {
        margin: 0;
        padding: 0;
    }

    .sobre-nosotros-section {
        margin: 0;
        padding: 0;
        min-height: 200vh;
    }

    .dual-content {
        margin: 0;
        padding: 0;
    }

    .image-sticky-container {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .text-section {
        padding: 80px 100px;
    }

    .footer-red {
        margin: 0;
        padding: 8px 0 0 0;
    }
}

.footer-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 35px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 8px 0;
    min-height: 35px;
}

.footer-content p {
    margin: 0;
}

.footer-hexagons {
    position: absolute;
    bottom: 0;
    left: 40px;
    display: flex;
    gap: 8px;
    z-index: 3;
    align-items: center;
    height: 100%;
}

.hexagon {
    width: 25px;
    height: 25px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    clip-path: polygon(
        25% 0%,
        75% 0%,
        100% 50%,
        75% 100%,
        25% 100%,
        0% 50%
    );
}

.hexagon:hover {
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .sobre-nosotros-section {
        min-height: auto;
        padding-top: 80px;
    }

    .dual-content {
        flex-direction: column;
        min-height: auto;
    }

    .left-content,
    .right-content {
        width: 100%;
        min-height: 50vh;
    }

    .left-content {
        position: relative !important;
        height: auto !important;
    }

    .image-sticky-container {
        position: relative !important;
        height: 60vh !important;
    }

    .left-content img {
        position: relative !important;
        opacity: 1 !important;
        margin-bottom: 0;
    }

    .text-section {
        padding: 40px 30px;
        min-height: auto;
    }

    .navbar {
        padding: 5px 30px;
    }

    .navbar ul {
        gap: 30px;
    }

    .header-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sobre-nosotros-section {
        padding-top: 80px;
    }

    .navbar {
        padding: 5px 20px;
    }

    .navbar ul {
        gap: 20px;
    }

    .navbar a {
        font-size: 12px;
        padding: 8px 15px;
        margin: 10px;
    }

    .header-title {
        font-size: 2rem;
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .left-content {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
    }

    .image-sticky-container {
        position: relative !important;
        height: 50vh !important;
    }

    .text-section {
        padding: 30px 20px;
        min-height: auto;
    }
}
