/* --- VARIABLES DE MARCA CARCOPAL --- */
:root {
    --color-primario: #0a192f;    /* Azul Marino Profundo */
    --color-secundario: #112240;  /* Azul Navy (Tarjetas) */
    --color-acento: #64ffda;      /* Cian Brillante (Interacción) */
    --color-plata: #e6f1ff;       /* Blanco Azulado (Texto Principal) */
    --color-gris: #8892b0;        /* Gris Azulado (Texto Secundario) */
    --color-fondo: #020c1b;       /* Negro Azulado Profundo */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --fuente-principal: 'Montserrat', sans-serif;
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-plata);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAVEGACIÓN --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-plata);
    text-decoration: none;
}

.logo span {
    color: var(--color-acento);
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu li a {
    text-decoration: none;
    color: var(--color-gris);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.menu li a:hover {
    color: var(--color-acento);
}

/* --- BOTONES Y ACCIONES --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-btn {
    text-decoration: none;
    color: var(--color-plata);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.login-btn:hover {
    color: var(--color-acento);
}

.cart-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--color-acento);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-acento);
    transition: var(--transition);
}

.cart-pill:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#contador-carrito {
    background: var(--color-acento);
    color: var(--color-primario);
    font-size: 0.9rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* --- HERO SECTION (ESTILO PREMIUM) --- */
.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* CAPA OSCURA + TU IMAGEN INICIO.JPG */
    background: linear-gradient(rgba(2, 12, 27, 0.75), rgba(2, 12, 27, 0.85)), 
                url('../inicio.jpg.png') center/cover no-repeat;
    
    padding: 0 15%;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-plata);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: fadeInDown 0.8s ease;
}

.hero h2 span {
    color: var(--color-acento);
}

.hero p {
    color: var(--color-gris);
    font-size: 1.1rem;
    max-width: 750px;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- GRID DE PRODUCTOS --- */
.productos {
    padding: 100px 8%;
}

.productos h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.producto {
    background: var(--color-secundario);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.producto:hover {
    transform: translateY(-10px);
    border-color: var(--color-acento);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.producto img {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 5px;
    filter: grayscale(20%);
    transition: var(--transition);
}

.producto:hover img {
    filter: grayscale(0%);
}

.producto h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-plata);
}

.producto p {
    color: var(--color-acento);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-accion {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--color-acento);
    color: var(--color-acento);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-accion:hover {
    background: var(--color-acento);
    color: var(--color-primario);
}

/* --- FOOTER --- */
.footer-carcopal {
    background: var(--color-primario);
    padding: 80px 8% 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
}

.footer-col h4 {
    color: var(--color-acento);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-gris);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gris);
    letter-spacing: 2px;
}

/* --- ANIMACIONES --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    .menu { display: none; }
    .header { padding: 15px 5%; }
}

/* --- CHATBOT FLOTANTE --- */
.chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #64ffda;
    color: #020c1b;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
    z-index: 2000;
    cursor: pointer;
    transition: all 0.3s ease;
}
.chatbot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.6);
}

.chatbot-window {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid #64ffda;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 2000;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #64ffda, #0a192f);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.chatbot-header h3 {
    color: #020c1b;
    font-size: 1rem;
    margin: 0;
    font-weight: 800;
}

.close-chatbot {
    background: none;
    border: none;
    color: #020c1b;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-chatbot:hover {
    color: #fff;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(2, 12, 27, 0.8);
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 1.1rem;
    line-height: 1.4;
}

.message.bot {
    background: rgba(10, 25, 47, 0.8);
    color: #ccd6f6;
    border-left: 3px solid #64ffda;
}

.message.user {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    margin-left: auto;
    border-right: 3px solid #64ffda;
}

.chatbot-input {
    padding: 15px;
    background: rgba(10, 25, 47, 0.8);
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(2, 12, 27, 0.8);
    border: 1px solid #64ffda;
    border-radius: 8px;
    color: #ccd6f6;
    font-family: inherit;
    outline: none;
}

.chatbot-input input:focus {
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.chatbot-input button {
    padding: 10px 20px;
    background: #64ffda;
    color: #020c1b;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: #fff;
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 300px;
        right: 10px;
        bottom: 100px;
    }
    .chatbot-btn {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 20px;
    }
}
