/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    width: 100%;
    font-family: 'Helvetica', sans-serif;
    background-color: white;
    overflow-x: hidden;
}

/* Overlay Styles */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeOut 3s ease-in-out 4s forwards;
    /* logo y texto fade out después de 4s */
}

.logo-fade {
    width: 60%;
    max-width: 400px;
    height: auto;
    animation: fadeIn 3s ease-in-out;
}

#introText {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #333;
    animation: fadeIn 3s ease-in-out, fadeOut 2s ease-in-out 3s forwards;
}

/* Main Content */
#main-content {
    display: none;
    position: relative;
}

#main-content.visible {
    display: block;
}

.models-container {
    position: relative;
    display: flex;
    flex-wrap: wrap; 
    width: 100%;
    min-height: 100vh; 
    overflow: visible; 
}

.model-side,
.model-center {
    background-size: cover;
    /* Cambiado a cover si quieres que llenen pantalla */
    background-repeat: no-repeat;
    background-position: center;
    flex: 1;
    height: auto; 
    min-height: 100vh;
    background-color: white;
    opacity: 0;
    animation: fadeModelIn 1.5s ease-in-out forwards;
}

#left-model {
    background-image: url("Images/modelo1.jpg");
    animation-delay: 0.3s;
}

.model-center {
    background-image: url("Images/modelo2.jpg");
    animation-delay: 0.6s;
}

#right-model {
    background-image: url("Images/modelo3.jpg");
    animation-delay: 0.9s;
}


#menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#menuToggle {
    background: transparent;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: black;
    transition: color 0.3s ease;
}

/* Color blanco en móvil */
@media screen and (max-width: 768px) {
    #menuToggle {
        color: white;
    }
}

/* Desktop & Tablet: Menú flotante solo sobre modelos */
.top-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 120px);
    margin-left: 50px;
    background-color: rgba(255, 182, 193, 0.4);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 900;
    transform: translateY(-100%);
}

.top-menu.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.top-menu li {
    list-style: none;
}

.top-menu a {
    color: white;
    font-size: 1.6rem;
    text-decoration: none;
    font-weight: bold;
}

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}


.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 182, 193, 0.4);
    border: 2px solid #ccc;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: rgba(255, 182, 193, 0.4);
}


.model-side,
.model-center {
    opacity: 0;
    animation: fadeModelIn 1.5s ease-in-out forwards;
}

#left-model {
    animation-delay: 0.3s;
}

.model-center {
    animation-delay: 0.6s;
}

#right-model {
    animation-delay: 0.9s;
}

@keyframes fadeModelIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid transparent;
    z-index: 1000;
    animation: fadeFooterIn 1s ease-in 1.5s both;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 0.1px;
    background-color: rgba(0, 0, 0, 0.15); /* más sutil */
}

.site-footer a {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7rem;
    animation: colorCycle 5s linear infinite;
}

.site-footer a:hover {
    color: red;
    text-decoration: underline;
}

.footer-links {
    margin-top: 5px;
}

/* Animaciones mantienen estilo glam, pero ahora el texto es más fino */

@keyframes fadeFooterIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorCycle {
    0% { color: #d4af37; }
    25% { color: white; }
    50% { color: yellowgreen; }
    75% { color: #007bff; }
    100% { color: #d4af37; }
}



/* Modal General */
.modal {
    position: fixed;
    inset: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; 
    overflow-y: auto;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.7);
}


.modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    background-color: rgba(254, 254, 254, 0.35);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

#wholesaleModal .modal-content {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: 2px solid rgba(254, 254, 254, 0.35);
}

#wholesaleModal input,
#wholesaleModal button {
    border: 1px solid white;
    background-color: transparent;
    color: white;
}

#adminModal .modal-content {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: 2px solid rgba(254, 254, 254, 0.35);
}

#adminModal input,
#adminModal button {
    border: 1px solid white;
    background-color: transparent;
    color: white;
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título */
.modal-content h2 {
    margin-top: 0;
    color: lightpink;
    text-align: center;
}

/* Campos del formulario */
.modal-content input,
.modal-content textarea,
.modal-content button {
    height: 30px;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    padding: 0 12px;
    /* horizontal solamente */
    box-sizing: border-box;

}

.modal-content button {
    background-color: lightpink;
    color: white;
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.3rem;
    font-weight: bold;
    color: red;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: lightpink;
    transform: scale(1.2);
}



/*Digital Card*/
.alt-btn {
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 1rem;
    background-color: lightpink;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.alt-btn:hover {
    background-color: lightpink;
}

.digital-card.new-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: white;
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.card-logo {
    width: 80px;
    height: auto;
    border-radius: 10px;
}

.card-info h3 {
    margin: 0;
    font-size: 1.4rem;
}

.card-info p {
    margin: 2px 0;
    font-size: 1rem;
    color: #ffe6ea;
}

.divider {
    border: none;
    border-top: 1px solid white;
    margin: 15px 0;
    opacity: 0.6;
}

.card-details p,
.card-details a {
    margin: 6px 0;
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
}

.card-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.social-links a {
    color: white;
    /* o usa black para fondo claro */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    background-color: white;
    color: #000;
    transform: scale(1.1);
}



/* Responsive */
@media screen and (max-width: 768px) {
    .models-container {
        flex-direction: column;
    }

    #left-model,
    #right-model {
        display: none;
    }

    .model-center {
        width: 100vw;
        height: 100vh;
        background-size: cover;
        background-position: center;
        animation-delay: 0s;
        /* Empieza de inmediato */
    }

    .top-menu {
        flex-direction: column;
        /* ⬅⬇ ahora se va hacia abajo */
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        top: 60px;
        left: 0;
        padding: 15px;
        background-color: transparent;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        z-index: 999;
    }

    .top-menu li {
        margin-bottom: 12px;
    }

    .top-menu a {
        font-size: 1.25rem;
        padding: 8px 0;
    }

    #menuToggle {
        position: relative;
        z-index: 1001;
        /* que quede por encima del menú */

    }


}