/* Custom Styles for Design Site */

:root {
    --primary-color: #1a1a1a;
    --accent-color: #636363;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --transition: all 0.4s ease;
    --enmente-color: #c5a47e;   /* Dorado/Bronce sofisticado */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    overflow-x: hidden;
}

/* Navbar */
#mainNav {
    padding: 0.5rem 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.scrolled .nav-link{
    
    /*padding: 1rem 0;*/
    backdrop-filter: blur(10px);
    color:#5e5d5d;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 10px;
    color:white;
    
    /*color:rgb(226, 226, 226);*/
}
.navbar-custom{
background:#111;
}

.navbar-custom .nav-link{
color:#d1d1d1;
}

.navbar-custom .nav-link:hover{
    color:#ffffff;
}




/* Soporte para Submenús Anidados */
.dropdown-submenu {
    position: relative;
}

/* Ocultar el submenú por defecto y posicionarlo a la derecha */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none; /* Se oculta */
    border-radius: 0; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Mostrar el submenú al pasar el mouse por el padre */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Ajuste para dispositivos móviles (evita que se salga de la pantalla) */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        left: 0;
        margin-left: 20px; /* Indentación visual en móviles */
        position: static;
        display: block; /* En móvil es mejor que estén expandidos o manejar con JS */
        border: none;
        box-shadow: none;
    }
}

/* Estilo adicional para que se vea "Fresco" y profesional */
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
    transition: all 0.3s ease;
}

.btn-admin {
    color: var(--enmente-color);
    border: 1px solid var(--enmente-color);
    border-radius: 4px;
    padding: 5px 15px !important;
}

.navbar-toggler{
    border-color: rgba(253, 253, 253, 0.5);
}

.navbar-toggler-icon{
    /*filter: invert(1);*/
    filter: brightness(0) invert(0.9);
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* Hero Section */
.hero-section, .project-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes zoomHero{
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.15);
    }
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: zoomHero 12s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

.hero-content {
    margin-top: 30%;
    position: relative;
    z-index: 1;
    padding-left: 5%;
    padding-right: 5%;
}

.imagenaux {
    width:90%;
    margin-top: 10%;
}

@media (max-width: 768px) {
    .hero-content {
        margin-top: 90%;        
    }

    .imagenaux {
        margin-top: 40%;
    }

    .hero-content h1{
        font-size: calc(1.2em + 1.2vw);
    }
    .hero-content p{
        font-size: calc(0.7em + 0.7vw);
    }
}

/* Full Img Section Interaction */
.seccion-proyecto {
    position: relative;
    overflow: hidden;
    height: 70vh; /* Altura controlada */
    display: flex;
    align-items: center;
    background-color: #000; /* Fondo de seguridad */
}

/* Imagen con efecto Ken Burns suave pero controlada */
.img-fondo-animada {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* Oscurece un poco la imagen para leer mejor */
    animation: zoomSuave 20s infinite alternate;
    z-index: 1;
}

/* El degradado se aplica aquí para no usar overlays extras */
.contenedor-texto {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 4%;
}

@keyframes zoomSuave {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.titulo-proyecto {
    font-size: calc(1.2em + 1.2vw);
    line-height: 1.1;
    letter-spacing: -1px;
}

.btn-personalizado {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-personalizado:hover {
    background: #fff;
    color: #000;
}

.btn-white-border:hover {
    background: white;
    color: black;
}

/* Product Cards (5 col grid) */
.product-card {
    transition: var(--transition);
    border-radius: 0;
}

.product-card:hover {
    transform: translateY(-10px);
}

.section-title {
    letter-spacing: 4px;
}

.title-underline {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
}

/* Store Specific */
.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    z-index: 2;
}

.store-card .card-img-top {
    height: 300px;
    object-fit: cover;
}

/* Footer Socials */
.social-links a {
    transition: var(--transition);
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Modals */
.modal-content {
    border-radius: 0;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/*WhatsApp*/
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    background-color: #25d366; /* Color de fondo de WhatsApp */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-button img {
    width: 40px; /* Tamaño del icono de WhatsApp */
    height: 40px;
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Efecto de agrandado al pasar el mouse */
}

.product-card img {
    width: 100%;
    height: 220px;      /* mismo alto para todas */
    object-fit: cover;  /* recorta la imagen sin deformarla */
}

@media (max-width: 768px) {
    .product-card img {
        height: 180px;
    }
}


/*PARAIMAGEN EFECTO*/
.full-vh-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;

    transform: scale(1.5);   /* más ampliada al inicio */
    transition: transform 30s ease-out; /* animación lenta */
}

.full-img-section.visible .full-vh-img {
    transform: scale(1); /* vuelve al tamaño normal */
}


/*SESSION CARDS*/
/* Importa las fuentes si no lo has hecho ya en el head de tu HTML */
@import url('https://fonts.googleapis.com/css2?family=Muli:wght@400;700&family=Quicksand:wght@400;700&display=swap');

/* Reset básico y box-sizing para consistencia */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #1b1b1b;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

/* Estilos Generales para la Sección */
.interior-section {
    padding-top: 80px;
    padding-bottom: 40px;;
    background-color: #f8f8f8;
}

.interior-section .container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Estilos de las Tarjetas Individuales */
.card-interior {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 60px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Estilos de la Imagen */
.card-img {
    flex: 1 1 50%;
    min-width: 50%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 120%; /* Para el efecto parallax */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
    max-width: 100%;

    /* --- MEJORA CRÍTICA PARA RENDIMIENTO EN iOS --- */
    will-change: transform; /* Indica al navegador que esta propiedad se animará */
    /* translateZ(0) se aplicará vía JavaScript para asegurar consistencia */
}

/* Estilos del Texto */
.card-text {
    flex: 1 1 50%;
    min-width: 50%;
    padding: 40px;
    font-family: 'Quicksand', sans-serif;
    color: #333;
}

.card-text h3 {
    font-family: 'Muli', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* --- RESPONSIVE DESIGN (Media Queries) --- */

/* Para pantallas medianas y pequeñas (hasta 991.98px, tablets y móviles) */
@media (max-width: 991.98px) {
    .card-interior {
        flex-direction: column !important;
        margin-bottom: 40px;
    }

    .card-img, .card-text {
        flex-basis: 100%;
        min-width: 100%;
    }

    .card-img {
        height: 350px;
    }

    .card-text {
        padding: 30px;
        text-align: center;
    }

    .card-text h3 {
        font-size: 24px;
    }

    /* En móviles, el parallax se deshabilitará por JS, pero reseteamos por si acaso */
    .card-img img {
        transform: translateY(0px) translateZ(0) !important; /* Resetea el parallax y asegura capa GPU */
        height: 100%;
    }
}

/* Para pantallas muy pequeñas (hasta 575.98px, móviles pequeños) */
@media (max-width: 575.98px) {
    .interior-section {
        padding: 50px 0;
    }

    .card-img {
        height: 250px;
    }

    .card-text {
        padding: 25px;
    }

    .card-text h3 {
        font-size: 20px;
    }

    .card-text p {
        font-size: 15px;
    }
}