@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;
    background: #f5f5f5;
    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: 700;
    color: white;
    text-align: center;
    line-height: 1.4;
    max-width: 1000px;
    padding: 0 40px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.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 CONTACTO
   ======================================== */

.contacto-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: #f5f5f5;
}

.contacto-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-titulo {
    font-size: 3rem;
    font-weight: 900;
    color: #666;
    text-align: left;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #666;
    background: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #666;
    font-weight: 400;
}

.form-input:focus {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    border-radius: 25px;
    padding: 20px 25px;
}

.form-submit {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    background: #2c3e8c;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(44, 62, 140, 0.3);
}

.form-submit:hover {
    background: #1e2d6b;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(44, 62, 140, 0.4);
}

.form-submit:active {
    transform: translateY(-1px);
}

/* ========================================
   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 contacto */
@media (min-width: 1201px) {
    .header-section {
        margin: 0;
        padding: 0;
    }

    .contacto-section {
        margin: 0;
        padding: 80px 40px;
        min-height: 100vh;
    }

    .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) {
    .navbar {
        padding: 5px 30px;
    }

    .navbar ul {
        gap: 30px;
    }

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

    .contacto-section {
        min-height: 100vh;
        padding: 60px 40px;
    }

    .contacto-titulo {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 5px 20px;
    }

    .navbar ul {
        gap: 20px;
    }

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

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

    .contacto-section {
        min-height: auto;
        padding: 60px 20px;
    }

    .contacto-titulo {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .form-input {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .form-submit {
        padding: 16px 35px;
        font-size: 1rem;
    }
}
