@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;
    /* Disables right-click menu on images mostly, but allows clicks to pass through */
}

/* Re-enable pointer events for specific images if needed (like if they have onclick handlers) - assuming mostly decorative or inside links */
a img {
    pointer-events: none;
    /* Ensure link is clickable but image not interactive */
}

/* 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, #000b10);
    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 #415978;
    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;
    /* Slightly larger banner */
    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);
    }
}

/* --- Sections & Layout --- */
main {
    max-width: 90%;
    /* Increased from 65% to make cards wider */
    width: 100%;
    margin: 0 auto;
    padding: 0;
    max-width: 1400px;
    /* Cap width for very large screens */
}

.seccion1 {
    margin: var(--spacing-lg) auto;
    /* Reduced spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1100px;
}

/* Cards / Containers */
.contenedorIcono,
.contenedorIcono2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* Circle shape for modern look */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-glow);
    transition: var(--transition-fast);
}

.contenedorIcono:hover,
.contenedorIcono2:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 40px var(--color-primary);
}

.contenedorIcono img,
.contenedorIcono2 img {
    width: 50%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.contenedorIcono2 {
    width: 300px;
    height: 300px;
    border-radius: 30px;
    /*Keep rectangle for larger image*/
}

.contenedorIcono2 img {
    width: 100%;
    border-radius: 30px;
}


/* Typography Content */
.texto,
.texto2 {
    max-width: none;
    /* Removed constraints to allow full width */
    flex: 1;
    /* Allow to expand */
    min-width: 300px;
    /* Prevent being too small */
}

#titulo2 h1,
#tituloVoces h1,
#titulo3 h1 {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #e0c888, #9E8E60);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#tituloVoces {
    text-align: center;
    margin-top: var(--spacing-xl);
}

#subtitulo2 h2 {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: -5px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#texto2 p,
#texto3 p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Separators */
.separador {
    margin: var(--spacing-lg) 0;
    /* Reduced spacing */
    display: flex;
    justify-content: center;
    opacity: 0.3;
}

.separador img {
    width: 80%;
    max-width: 800px;
}

/* --- Voices Grid (Cards) --- */
.muestras-container {
    width: auto;
    margin-bottom: var(--spacing-xl);
}

.muestras-grid-base {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 16px;
    width: 100%;
    margin: -15% auto -15% auto;
    justify-content: center;
    align-items: center;
    transform: scale(0.90);
    box-sizing: border-box;
}

.muestra-item {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-card);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;

}

.muestra-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(158, 142, 96, 0.3);
    background: rgba(40, 40, 40, 0.8);
}

.muestra-item img {
    width: 100%;
    height: 400px;
    /* Taller image container */
    object-fit: contain;
    /* Show full image */
    border-radius: 12px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    /* Better shadow for contain */
    transition: transform 0.5s ease;
}

.muestra-item:hover img {
    transform: scale(1.05);
}

.descripcion-muestra h4 {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

/* Custom Audio Player Styling */
audio {
    width: 100%;
    height: 54px;
    margin-top: auto;
    /* Push to bottom */
    filter: invert(0.9) hue-rotate(180deg);
    opacity: 0.8;
    transition: opacity 0.3s;
}

audio:hover {
    opacity: 1;
}

/* Purchase Button */
.enlace-compra {
    margin-top: 20px;
    background: #415978;
    padding: 12px 70px;
    border-radius: 50px;
    transition: var(--transition-fast);
    width: auto;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(65, 89, 120, 0.4);
}

.enlace-compra:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(65, 89, 120, 0.8);
    filter: brightness(1.1);
}

.enlace-compra a {
    text-decoration: none;
    color: #ffffff;
}

.enlace-compra h4 {
    margin: 0;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Pricing Plans --- */
.planes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.planes1,
.planes2 {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

#planLow,
#planEstandar,
#planProfesional,
#planUnico {
    padding: 40px;
    border-radius: var(--border-radius-card);
    text-align: center;
    width: 350px;
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Low Cost */
#planLow {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Standard */
#planEstandar {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

/* Professional */
#planProfesional {
    background: linear-gradient(145deg, #5D4037, #3E2723);
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.3);
}

/* Unique */
#planUnico {
    background: linear-gradient(145deg, #Bcaaa4, #8d6e63);
    /* Gold/Bronze */
    background: radial-gradient(circle at top right, #b5a36c, #776B4A);
    color: #000;
    box-shadow: 0 10px 40px rgba(158, 142, 96, 0.4);
    transform: scale(1.05);
    z-index: 10;
}

#planUnico h1,
#planUnico h2,
#planUnico p {
    color: #1a1a1a !important;
}

#planLow:hover,
#planEstandar:hover,
#planProfesional:hover,
#planUnico:hover {
    transform: translateY(-10px) scale(1.02);
}

.planes h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.planes h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.planes p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 10px 0;
}

/* --- Contact & Footer --- */
/* Centering the "Want to know more?" section */
.texto3 {
    text-align: center;
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.texto3 p {
    text-align: center;
    /* Override justify if inherited */
}

/* Contact Button Container */
.botonAyudaPadre {
    margin-top: var(--spacing-xl);
    text-align: center;
    display: flex;
    justify-content: center;
}

.botonAyuda {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.botonAyuda p {
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.botonAyuda:hover {
    background: var(--color-primary);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.botonAyuda:hover p {
    color: #000;
}

/* Footer Breakout to 100% Width */
.pie {
    background-color: #000;
    padding: 60px 0;
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid #1a1a1a;

    /* CSS Breakout Technique: Force full width inside constrained parent */
    width: 100%;
}

.textosPie {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.textoPie p {
    color: #888;
    font-size: 0.9rem;
    transition: 0.3s;
}

.textoPie p:hover {
    color: var(--color-primary);
}

.copy p {
    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;
        /* Allow fixed menu to escape */
        z-index: 1000;
        /* Ensure header stack is managed */
    }

    .imagenBanner {
        /* Ensure image doesn't spill if we removed header overflow */
        overflow: hidden;
        border-radius: 0 0 20px 20px;
        /* Optional polish */
        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;
        /* Ensure above full-screen menu */
        position: relative;
    }

    .menu-icon img {
        display: block;
        width: 32px;
        filter: brightness(0) invert(1);
        /* Force white */
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        /* Full viewport height */
        background: rgba(0, 0, 0, 0.98);
        /* Opaque dark background */
        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;
        /* Larger for full screen impact */
        font-weight: 600;
        color: var(--color-text-muted);
        display: block;
        padding: 0px;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--color-primary);
    }

    .seccion1 {
        flex-direction: column;
        text-align: center;
    }

    .texto {
        margin: 0 20px;
    }

    .texto3 {
        margin: var(--spacing-lg) auto;
        width: calc(100% - 40px);
    }

    /* --- Responsive Design --- */
    @media (max-width: 1200px) {
        .muestras-grid-base {
            grid-template-columns: repeat(2, 1fr);
            width: 90%;
            transform: scale(1);
            margin: 0 auto;
            gap: 24px;
        }
    }

    @media (max-width: 900px) {

        /* ... (previous header fixes remain) ... */
        header {
            overflow: visible;
            z-index: 1000;
        }

        /* ... */
    }

    @media (max-width: 800px) {

        /* Shared mobile logics from 900px can move here or overlap */
        .muestras-grid-base {
            grid-template-columns: 1fr;
            padding: 0 20px;
            width: 90%;
            gap: 24px;
        }

        .muestra-item {
            height: auto;
            padding: 24px;
        }

        .muestra-item img {
            max-width: 80%;
            height: auto;
        }
    }

    .planes1,
    .planes2 {
        flex-direction: column;
        align-items: center;
        width: 90%;
    }

    #planLow,
    #planEstandar,
    #planProfesional,
    #planUnico {
        width: fit-content;
    }


}

/* --- 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;
    }
}