/* Variables de color */
:root {
    --oscuro: #000000;
    --cyan: #00d4ff;
    --blanco: #ffffff;
    --gris: #888888;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color:var(--blanco);
    color: var(--blanco);
    scroll-behavior: smooth;
}

/* Navegación */
nav {
    background-color:var(--oscuro);
    padding: 10px 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    object-fit: cover;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}

/* Hero */
.hero {
    font-size: 50px;
    font-weight: 900;
    color: var(--blanco);
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://i.postimg.cc/sfS6R2dB/91c4b65b-64ec-4a17-880d-65f75333178a.jpg');
    background-size: cover;
    background-position: center;
    -webkit-text-stroke: 1.5px #0592ca; 
    text-shadow: 3px 3px 15px rgba(18, 142, 214, 0.9);
}

/* Productos */
.container { 
    padding: 50px 10%; 
}

.section-title {
    color: var(--oscuro);
    text-align: center;
    font-size: 32px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    justify-content: center; 
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--oscuro);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center; 
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px); 
}

.product-img {
    width: 100%;
    max-width: 220px;   
    height: 270px;      
    object-fit: cover;  
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.badge-tela {
    display: inline-block;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.tallas {
    margin: 10px 0;
    color: var(--gris);
    font-size: 14px;
}

.btn-buy {
    background-color: #25d366;
    color: var(--oscuro);
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    width: 100%;
    margin-top: auto; 
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-buy:hover {
    background-color: #1ebe57;
}

/* Sección de Tarjetas de Colores */
#colores-seccion {
    padding: 60px 20px;
    background-color: var(--blanco); 
    text-align: center;
}

.colores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.color-card-v2 {
    background-color: var(--oscuro); 
    border: 1px solid #333;           
    border-radius: 12px;
    padding: 20px 15px;
    width: 230px;                    
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.color-card-v2:hover {
    transform: translateY(-5px);
    border-color: #25d366; 
}

.color-img-container {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.color-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.color-card-v2 h4 {
    color: var(--blanco);
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
}

.color-card-v2 .badge-stock {
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0px 14px 0px;
    color: var(--cyan);
}

/* Componentes: Selector de Cantidad, Barra Fija y Modal WA */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    background-color: #141414;
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid #333;
    width: 85%;
    box-sizing: border-box;
}

.btn-qty {
    background-color: var(--cyan);
    color: #000000;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-qty:hover {
    background-color: #00b2d6;
}

.qty-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--blanco);
    min-width: 20px;
    text-align: center;
}

.order-summary-bar {
    margin-top: 45px;
    text-align: center;
    position: sticky;
    bottom: 20px;
    z-index: 900;
}

.btn-send-order {
    background-color: #25d366;
    color: var(--oscuro);
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.btn-send-order:hover {
    background-color: #1ebe57;
    transform: scale(1.03);
}

/* Modal WA */
.modal-wa {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-wa-content {
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative; 
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    animation: aparecerModal 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover, .close-modal:focus {
    color: #ff4d4d;
    text-decoration: none;
}

.modal-wa-content h3 {
    margin-top: 0;
    font-size: 15px;
    color: var(--blanco);
    font-weight: bold;
}

.btn-wa-opt {
    background-color: #1f1f1f;
    color: var(--blanco);
    border: 1px solid #444;
    padding: 12px;
    width: 100%;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-align: left;
}

.btn-wa-opt:hover {
    background-color: #25d366;
    color: #000000;
    border-color: #25d366;
}

.btn-wa-cancel {
    background-color: transparent;
    color: var(--gris);
    border: none;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 13px;
}

.btn-wa-cancel:hover {
    color: var(--blanco);
}

@keyframes aparecerModal {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsivo */
@media (max-width: 600px) {
    nav { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .nav-links { padding: 0; margin: 0; gap: 15px; justify-content: center; width: 100%; }
    .nav-links a { font-size: 12px; }
    .hero { font-size: 15px; height: 50vh; -webkit-text-stroke: 1px #0592ca; }
    .container { padding: 30px 4%; }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; max-width: 100%; }
    .colores-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px; max-width: 100%; }
    .product-card, .color-card-v2 { padding: 12px 8px; width: 100% !important; box-sizing: border-box; }
    .product-img, .color-img-container { height: 180px; }
    .quantity-selector { width: 100%; gap: 8px; padding: 4px 6px; }
    .btn-qty { width: 22px; height: 22px; font-size: 13px; }
    .qty-value { font-size: 13px; }
    .btn-send-order { padding: 12px 25px; font-size: 14px; width: 95%; }
    .section-title { font-size: 18px; }
}