﻿/* ===============================
   AmetSilva – Estilos globales (Dark Premium)
   =============================== */

:root {
    --negro: #000000;
    --gris: #0a0a0a;
    --dorado: #DAAF00;
    --azul: #010059;
    --blanco: #f9f9f9;
    --texto: #d1d5db;
    --transicion: all 0.4s ease;
    --radio: 16px;
    --sombra: 0 0 25px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--negro);
    color: var(--texto);
    overflow-x: hidden;
}

/* ===============================
   CONTENEDORES Y LAYOUT
   =============================== */
.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

section {
    padding: 90px 0;
    position: relative;
}

.section.alt {
    background-color: #0f0f0f;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* ===============================
   HEADER / NAVBAR
   =============================== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 60px;
    border-radius: 10px;
    filter: drop-shadow(0 0 6px rgba(218, 175, 0, 0.3));
}

.brand-name {
    font-weight: 700;
    color: var(--dorado);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 30px;
}

    .nav a {
        color: var(--texto);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transicion);
        position: relative;
    }

        .nav a:hover {
            color: var(--dorado);
        }

        .nav a::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--dorado);
            transition: var(--transicion);
        }

        .nav a:hover::after {
            width: 100%;
        }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--blanco);
    font-size: 26px;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
    background: radial-gradient(circle at top left, #111 0%, #000 80%);
    color: var(--blanco);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--dorado);
    animation: fadeInDown 1.3s ease both;
}

.hero-text p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeIn 1.6s ease both;
}

.hero-art img {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    filter: drop-shadow(0 0 25px rgba(218, 175, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ===============================
   BOTONES
   =============================== */
.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid var(--dorado);
    font-weight: 700;
    transition: var(--transicion);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--dorado);
    color: var(--negro);
}

    .btn-primary:hover {
        background: #e9c500;
        box-shadow: 0 0 12px var(--dorado);
    }

.btn-outline {
    color: var(--dorado);
    border-color: var(--dorado);
    background: transparent;
}

    .btn-outline:hover {
        background-color: var(--dorado);
        color: var(--negro);
    }

/* ===============================
   CARDS / SECCIONES
   =============================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radio);
    padding: 25px;
    text-align: center;
    box-shadow: var(--sombra);
    transition: var(--transicion);
}

    .card:hover {
        transform: translateY(-6px);
        border-color: var(--dorado);
        box-shadow: 0 0 20px rgba(218, 175, 0, 0.3);
    }

    .card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 18px;
    }

/* ===============================
   FORMULARIO DE CONTACTO
   =============================== */
.form {
    background: #111;
    padding: 25px;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}

.input {
    width: 100%;
    border: 1px solid #333;
    background: #0f0f0f;
    color: var(--blanco);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    transition: var(--transicion);
}

    .input:focus {
        border-color: var(--dorado);
        outline: none;
        box-shadow: 0 0 10px rgba(218, 175, 0, 0.3);
    }

/* ===============================
   FOOTER
   =============================== */
.site-footer {
    background: #000;
    color: var(--texto);
    padding-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--dorado);
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    font-size: 0.95rem;
    color: var(--texto);
    text-decoration: none;
    transition: var(--transicion);
}

    .footer-col a:hover {
        color: var(--dorado);
    }

.footer-logo {
    width: 160px;
    filter: drop-shadow(0 0 12px rgba(218, 175, 0, 0.6));
    margin-bottom: 10px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

    .socials a {
        color: var(--dorado);
        font-size: 1.2rem;
        transition: var(--transicion);
    }

        .socials a:hover {
            color: var(--blanco);
            transform: scale(1.2);
        }

.copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    color: #888;
    font-size: 0.9rem;
}

/* ===============================
   ANIMACIONES
   =============================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: #000;
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        padding: 20px;
        text-align: center;
    }

        .nav.open {
            display: flex;
        }

    .nav-toggle {
        display: block;
    }
}

/* ===============================
   HERO ANIMADO (Nosotros)
   =============================== */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #000 0%, #010059 100%);
    color: var(--blanco);
    text-align: center;
    padding: 120px 0;
}

    .hero::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient( from 0deg, rgba(218, 175, 0, 0.05), rgba(218, 175, 0, 0.15), rgba(218, 175, 0, 0.05), rgba(218, 175, 0, 0.25) );
        animation: glowRotate 12s linear infinite;
        z-index: 0;
    }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.7), #000 90%);
        z-index: 1;
    }

    /* Asegura que el contenido quede arriba del brillo */
    .hero * {
        position: relative;
        z-index: 2;
    }

/* ===============================
   ANIMACIÓN DE GIRO
   =============================== */
@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ====== CORRECCIÓN FOOTER INVISIBLE ====== */

/* Asegura que el contenido no tape el footer */
.site-main {
    min-height: 70vh; /* deja espacio visual antes del footer */
    display: block;
    overflow: visible;
    position: relative;
}

/* Hace que el footer siempre quede visible al final */
.site-footer {
    position: relative;
    z-index: 10;
    background-color: #000;
    padding-top: 60px;
    padding-bottom: 30px;
    text-align: center;
    color: #d1d5db;
}

    /* Línea superior animada dorada */
    .site-footer::before {
        content: "";
        display: block;
        height: 3px;
        background: linear-gradient(90deg, rgba(218,175,0,0.1), rgba(218,175,0,1), rgba(218,175,0,0.1));
        background-size: 200% 100%;
        animation: lineGlow 6s linear infinite;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

@keyframes lineGlow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Ajusta color del texto del copy */
.copy {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ===============================
   MENÚ DESPLEGABLE - PRODUCTOS
   =============================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: var(--texto);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transicion);
    padding: 8px 0;
}

    .dropbtn i {
        margin-left: 6px;
        font-size: 0.8rem;
        color: var(--dorado);
    }

/* Contenedor del submenú */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0f0f0f;
    min-width: 220px;
    box-shadow: var(--sombra);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    top: 100%;
    left: 0;
    z-index: 1000;
}

    /* Enlaces dentro del submenú */
    .dropdown-content a {
        color: var(--texto);
        padding: 12px 18px;
        text-decoration: none;
        display: block;
        transition: var(--transicion);
    }

        .dropdown-content a:hover {
            background-color: rgba(218, 175, 0, 0.1);
            color: var(--dorado);
        }

/* Mostrar submenú al pasar el mouse */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Indicador visual cuando está activo */
.dropdown:hover .dropbtn {
    color: var(--dorado);
}

/* Adaptación móvil */
@media (max-width: 900px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }
}

/* ===============================
   MENÚ MULTINIVEL (PRODUCTOS)
   =============================== */

.multilevel .dropdown-content {
    display: none; /* NECESARIO para ocultar el menú */
    position: absolute;
    background: #0f0f0f;
    padding: 10px 0;
    border-radius: 10px;
    min-width: 240px;
    z-index: 1000;
}

.multilevel:hover .dropdown-content {
    display: block;
}

/* Primer nivel */
.submenu {
    position: relative;
}

.submenu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    color: var(--texto);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transicion);
}

    .submenu-title:hover {
        background-color: rgba(218,175,0,0.1);
        color: var(--dorado);
    }

/* Segundo nivel */
.submenu-items {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 230px;
    background: #0f0f0f;
    border-radius: 10px;
    padding: 10px 0;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--sombra);
}

.submenu:hover .submenu-items {
    display: block;
}

/* Items del segundo nivel */
.submenu-items a {
    display: block;
    padding: 10px 18px;
    color: var(--texto);
    text-decoration: none;
    transition: var(--transicion);
}

    .submenu-items a:hover {
        background-color: rgba(218,175,0,0.1);
        color: var(--dorado);
    }

/* FORZAR dropdown cerrado */
.multilevel .dropdown-content {
    display: none !important;
}

/* Mostrar al pasar el mouse */
.multilevel:hover .dropdown-content {
    display: block !important;
}


/* ============================
   CATÁLOGO
============================ */

.titulo-catalogo {
    text-align: center;
    margin: 40px 0;
    color: var(--dorado);
    font-size: 36px;
    font-weight: 700;
}

/* GRID */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
    padding: 20px 40px;
}

/* TARJETA */
.producto-card {
    background: #111;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 20px rgba(218,175,15,0.15);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

    .producto-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 0 30px rgba(218,175,15,0.35);
    }

    /* IMÁGENES */
    .producto-card img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        margin-bottom: 20px;
    }

    /* TÍTULOS */
    .producto-card h3 {
        color: #fff;
        font-size: 20px;
        margin-bottom: 5px;
    }

.codigo {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

/* BOTONES */
.botones {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-detalle,
.btn-pedido {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-detalle {
    background: var(--dorado);
    color: #000;
}

.btn-pedido {
    background: #fff;
    color: #000;
}

.btn-detalle:hover {
    background: #ffdd33;
}

.btn-pedido:hover {
    background: #e0e0e0;
}
/* ============================
   DETALLE DE PRODUCTO
============================ */

.producto-detalle {
    padding: 40px;
}

.titulo-producto {
    text-align: center;
    color: var(--dorado);
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 700;
}

.producto-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.producto-imagen img {
    width: 360px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(218,175,15,0.25);
}

.producto-info {
    max-width: 600px;
    color: #fff;
    font-size: 18px;
}

    .producto-info h2 {
        color: var(--dorado);
        margin-top: 20px;
    }

    .producto-info ul li {
        margin-bottom: 8px;
    }

.btn-pedido-detalle {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: var(--dorado);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-pedido-detalle:hover {
        background: #ffdf3c;
        transform: translateY(-3px);
    }

/* ================= WHATSAPP PREMIUM AMETSILVA ================= */

.ws-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 75px;
    height: 75px;
    cursor: pointer;
    z-index: 9999;
    animation: wsPulse 2s infinite ease-in-out;
}

    .ws-float-btn img {
        width: 75px;
        height: 75px;
        border-radius: 50%;
        box-shadow: 0 0 20px rgba(218,175,15,0.5);
        transition: 0.3s;
    }

        .ws-float-btn img:hover {
            transform: scale(1.1);
            box-shadow: 0 0 30px rgba(218,175,15,0.8);
        }

/* POPUP */
.ws-popup {
    position: fixed;
    bottom: 120px;
    right: -350px;
    width: 330px;
    background: #0f0f0f;
    border: 2px solid #DAAF0F;
    border-radius: 15px;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 0 25px rgba(218,175,15,0.3);
    transition: 0.4s ease;
    opacity: 0;
}

    .ws-popup.abrir {
        right: 20px;
        opacity: 1;
    }

/* HEADER */
.ws-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(218,175,15,0.4);
}

.ws-logo {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    margin-right: 12px;
    box-shadow: 0 0 10px rgba(218,175,15,0.4);
}

.ws-agent span {
    font-size: 13px;
    color: #DAAF0F;
}

.ws-close {
    margin-left: auto;
    font-size: 22px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

    .ws-close:hover {
        color: #DAAF0F;
    }

/* BODY */
.ws-body {
    padding: 15px;
    font-size: 15px;
    line-height: 1.5;
}

/* BOTÓN */
.ws-button {
    display: block;
    background: #25d366;
    color: #000;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 0 0 15px 15px;
    text-decoration: none;
}

    .ws-button:hover {
        background: #1ee058;
    }

/* PULSE effect for button */
@keyframes wsPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}



