@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- Global Design Tokens --- */
:root {
    /* Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: rgba(30, 30, 30, 0.6);
    --color-primary: #9E8E60;
    --color-primary-hover: #b5a36c;
    --color-secondary: #776B4A;
    --color-text-main: #f0f0f0;
    --color-text-muted: #d7d7d7;
    --color-accent-glow: rgba(158, 142, 96, 0.4);

    /* Typography */
    --font-main: "Be Vietnam Pro", sans-serif;
    --font-title: "fuenteTitulos", serif;

    /* Spacing */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Effects */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
    --backdrop-blur: blur(12px);
    --border-radius-card: 24px;
    --border-radius-pill: 50px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
    font-family: 'fuenteTitulos';
    src: url('../fuente/montecaniPro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Base Styles --- */
body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    margin: 0;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

a img {
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Header & Navigation --- */
header {
    background: linear-gradient(to bottom, #000000, #101000);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    /* Increased height */
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    padding-top: 80px;
    /* Add padding to prevent navbar covering image */
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* Reduced to match main content */
    /* Wider navbar to match new page width */
    background: rgba(48, 48, 48, 0.3);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 2px solid #787441;
    border-radius: var(--border-radius-pill);
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Disable text selection in navbar */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
    align-items: center;
    margin-top: 2px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
    font-family: var(--font-title);
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-icon img {
    display: none;
}

.menu-icon img {
    pointer-events: auto;
}

.imagenBanner img {
    width: 100%;
    max-width: 700px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Separators */
.separador {
    margin: var(--spacing-lg) 0;
    display: flex;
    justify-content: center;
    opacity: 0.3;
}

.separador img {
    width: 80%;
    max-width: 800px;
}

/* --- Contact Form --- */
.tituloContacto {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 2.5rem;
    text-align: center;
    margin: var(--spacing-lg) auto 20px;
    background: linear-gradient(to right, #e0c888, #9E8E60);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 550px;
    width: 90%;
    margin: 0 auto var(--spacing-lg);
    padding: 40px;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
}


.formulario label {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 20px;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(158, 142, 96, 0.2);
    border-radius: 12px;
    color: var(--color-text-main);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-fast);
    outline: none;
    box-sizing: border-box;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
    border-color: var(--color-primary);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 0 0 20px rgba(158, 142, 96, 0.2);
}

.formulario input::placeholder,
.formulario textarea::placeholder {
    color: rgba(215, 215, 215, 0.4);
}

.formulario textarea {
    min-height: 150px;
    resize: vertical;
}

.formulario select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239E8E60' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.formulario select option {
    background: #1a1a1a;
    color: var(--color-text-main);
}

.botonEnviar {
    margin-top: 30px;
    padding: 15px 60px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(158, 142, 96, 0.3);
}

.botonEnviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(158, 142, 96, 0.5);
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
}

.botonEnviar:active {
    transform: translateY(-1px);
}

/* Footer Breakout to 100% Width */
.pie {
    background-color: #000;
    padding: 60px 0;
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
}

.textosPie {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.textoPie {
    color: #888;
    font-size: 0.9rem;
    transition: 0.3s;
}

.textoPie:hover {
    color: var(--color-primary);
}

.copy {
    color: #555;
    font-size: 0.8rem;
}

/* Scroll Top Button */
.botonVolver {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.botonVolver.show {
    opacity: 1;
    visibility: visible;
}

.botonVolver:hover {
    transform: translateY(-5px);
    background-color: #fff;
}

.botonVolver img {
    width: 20px;
    height: 20px;
}


/* --- Responsive Design --- */
@media (max-width: 900px) {
    header {
        overflow: visible;
        z-index: 1000;
    }

    .imagenBanner {
        overflow: hidden;
        border-radius: 0 0 20px 20px;
        max-height: 400px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .navbar {
        width: 100%;
        border-radius: 0;
        top: 0;
        transform: none;
        left: 0;
        justify-content: space-between;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.9);
        border: none;
        box-shadow: none;
    }

    .menu-icon {
        display: block;
        z-index: 2001;
        position: relative;
    }

    .menu-icon img {
        display: block;
        width: 32px;
        filter: brightness(0) invert(1);
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        gap: 40px;
        z-index: 2000;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-text-muted);
        display: block;
        padding: 0px;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--color-primary);
    }

    .tituloContacto {
        font-size: 2rem;
        margin: var(--spacing-md) auto 15px;
    }

    .formulario {
        padding: 30px 20px;
        width: 95%;
    }

    .formulario input,
    .formulario select,
    .formulario textarea {
        width: 100%;
    }

    .botonEnviar {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 435px) {
    .textosPie {
        flex-direction: column;
    }
}

/* --- Laptops / Normal Desktops Scaling (1201px - 1920px) --- */
@media (min-width: 1201px) and (max-width: 1920px) {
    body {
        zoom: 0.9;
    }
}

/* --- Large Screens Scaling (> 1920px) --- */
@media (min-width: 1921px) {
    body {
        zoom: 0.8;
    }
}