/* ============================================
   NACIONAL DE CERÁMICAS - Estilos CSS
   Distribuidora de Cerámica Premium
   ============================================ */

/* Variables de color */
:root {
    --rojo:       #C0152A;
    --rojo-oscuro:#8B0000;
    --rojo-suave: #e8c8cc;
    --blanco:     #FFFFFF;
    --crema:      #FAF7F5;
    --gris-claro: #F2EEEB;
    --gris-medio: #888;
    --negro:      #1A1A1A;
    --dorado:     #C9A84C;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: var(--negro);
    line-height: 1.7;
    background-color: var(--blanco);
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: var(--blanco);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--rojo);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--rojo);
    letter-spacing: 1px;
}

.logo-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--negro);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Nav */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--negro);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }
nav a:hover { color: var(--rojo); }

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--blanco);
    border-top: 3px solid var(--rojo);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    min-width: 200px;
    list-style: none;
    z-index: 2000;
    padding: 0.5rem 0;
    animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.4rem;
    color: var(--negro) !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li a:hover {
    background: var(--crema);
    color: var(--rojo) !important;
}

.dropdown-divider {
    height: 1px;
    background: var(--rojo-suave);
    margin: 0.3rem 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    display: block;
}

/* Header icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: var(--rojo);
    border: none;
    color: var(--blanco);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: var(--rojo);
}

#search-input {
    border: none;
    outline: none;
    padding: 0.55rem 0.9rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--negro);
    background: var(--blanco);
    width: 190px;
}

#search-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.search-btn {
    background: var(--rojo);
    border: none;
    color: white;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    background: var(--rojo-oscuro);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--negro) 0%, #2c0a0f 60%, var(--rojo-oscuro) 100%);
    padding: 9rem 5% 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="80" fill="none"/><path d="M0 40h80M40 0v80" stroke="rgba(255,255,255,0.04)" stroke-width="1"/><path d="M0 0l80 80M80 0L0 80" stroke="rgba(192,21,42,0.06)" stroke-width="1"/></svg>');
    opacity: 1;
}

.hero-pattern {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--blanco);
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 50% 0%, 0 40%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--dorado);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4.5rem;
    color: var(--blanco);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.hero-highlight {
    color: var(--rojo);
    font-style: italic;
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-btn {
    background: var(--rojo);
    color: var(--blanco);
    padding: 1.1rem 3.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--rojo);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: transparent;
    color: var(--blanco);
    border-color: var(--blanco);
    transform: translateY(-3px);
}

/* ============================================
   BRANDS STRIP
   ============================================ */
.brands-section {
    background: var(--crema);
    border-bottom: 1px solid var(--rojo-suave);
    padding: 2rem 5%;
}

.brands-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brands-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gris-medio);
    font-weight: 700;
    flex-shrink: 0;
}

.brands-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brands-strip span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--negro);
    letter-spacing: 2px;
}

.brands-strip .divider {
    color: var(--rojo);
    font-size: 0.6rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--negro);
    font-weight: 800;
}

.section-title span {
    color: var(--rojo);
    font-style: italic;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--blanco);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-top: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(192,21,42,0.15);
    border-top-color: var(--rojo);
}

.product-image {
    width: 100%;
    height: 240px;
    background: var(--gris-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 0.4rem;
}

.product-info .marca-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 0.8rem;
    display: block;
}

.product-info div:nth-child(3) {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rojo);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.add-to-cart {
    width: 100%;
    background: var(--blanco);
    color: var(--rojo);
    padding: 0.85rem;
    border: 2px solid var(--rojo);
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: var(--rojo);
    color: var(--blanco);
}

/* ============================================
   CATEGORIES SECTION (Filtro por Marca)
   ============================================ */
.categories-section {
    background: var(--crema);
    padding: 6rem 5%;
}

.categories-grid {
    max-width: 1400px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--blanco);
    padding: 2.5rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    border-bottom: 3px solid var(--rojo-suave);
}

.category-card:hover {
    border-color: var(--rojo);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(192,21,42,0.15);
}

.category-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.category-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--negro);
    letter-spacing: 1px;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--rojo-suave);
    background: var(--blanco);
    transition: box-shadow 0.3s;
}

.benefit-card:hover {
    box-shadow: 0 8px 30px rgba(192,21,42,0.12);
}

.benefit-icon {
    width: 75px;
    height: 75px;
    background: var(--rojo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(192,21,42,0.3);
}

.benefit-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 0.8rem;
}

.benefit-description {
    color: var(--gris-medio);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 5rem 5% 2rem;
    border-top: 4px solid var(--rojo);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.footer-logo-main {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--rojo);
}

.footer-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.footer-section h3 {
    color: var(--rojo);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--rojo);
    padding-left: 5px;
}

.footer-brands {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-brand-tag {
    background: rgba(192,21,42,0.15);
    border: 1px solid var(--rojo);
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.9rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.5;
}

.footer-bottom .developer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .developer-credit a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
    padding-bottom: 1px;
}

.footer-bottom .developer-credit a:hover {
    color: var(--rojo);
    border-bottom-color: var(--rojo);
    padding-left: 0;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.6rem;
    }
}

/* ============================================
   CART PANEL
   ============================================ */
.cart-panel {
    position: fixed;
    right: -420px;
    top: 0;
    width: 380px;
    height: 100%;
    background: #1a1a1a;
    color: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    border-left: 3px solid var(--rojo);
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    background: var(--rojo);
}

.cart-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: white;
}

.cart-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cart-header button:hover { opacity: 1; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

.cart-item strong {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.9);
}

.cart-item button {
    background: #333;
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    margin: 0.3rem 0.2rem 0 0;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.cart-item button:hover { background: var(--rojo); }

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
}

.cart-footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--rojo);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s;
}

.checkout-btn:hover { background: var(--rojo-oscuro); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .brands-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   PRODUCT CARD - actualizaciones
   ============================================ */
.product-placeholder {
    font-size: 4rem;
}

.product-image--clickable {
    cursor: pointer;
    position: relative;
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(192,21,42,0.75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image--clickable:hover .product-image-overlay {
    opacity: 1;
}

.product-medidas {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0.7rem;
}

.product-precios {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: baseline;
}

.precio-m2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rojo);
}

.precio-caja {
    font-size: 0.85rem;
    color: #888;
    background: var(--crema);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.product-btns {
    display: flex;
    gap: 0.6rem;
}

.btn-detalle {
    flex: 1;
    background: var(--blanco);
    color: var(--rojo);
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--rojo);
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-detalle:hover {
    background: var(--rojo);
    color: var(--blanco);
}

.add-to-cart {
    flex: 1;
    background: var(--rojo);
    color: var(--blanco);
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--rojo);
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--rojo-oscuro);
    border-color: var(--rojo-oscuro);
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 8000;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: block;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(92vw, 950px);
    max-height: 90vh;
    background: var(--blanco);
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    z-index: 9000;
    overflow-y: auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.product-modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--rojo);
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.modal-left {
    background: var(--gris-claro);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
}

.modal-img-wrap {
    width: 100%;
    height: 380px;
    border-radius: 6px;
    overflow: hidden;
}

.modal-right {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-marca {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rojo);
}

.modal-right h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--negro);
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem;
    background: var(--crema);
    border-radius: 4px;
    border-left: 3px solid var(--rojo);
}

.modal-meta div {
    font-size: 0.9rem;
    color: #555;
}

.modal-meta span {
    font-weight: 400;
}

.modal-meta strong {
    color: var(--negro);
}

/* Precios en modal */
.modal-precios-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.modal-precio-box {
    display: flex;
    flex-direction: column;
}

.modal-precio-box span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rojo);
}

.modal-precio-box small {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-precio-sep {
    color: #ddd;
    font-size: 1.5rem;
}

/* Calculadora */
.calc-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.calc-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.7rem 1rem;
}

.calc-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.calc-group input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--negro);
    background: white;
}

.calc-group input:focus {
    outline: none;
    border-color: var(--rojo);
}

.calc-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem;
    transition: color 0.2s;
}

.calc-btn:hover {
    color: var(--rojo);
}

.calc-unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 1px;
}

.calc-sep {
    color: #ddd;
    font-size: 1.2rem;
}

.calc-nota {
    font-size: 0.78rem;
    color: #888;
    background: #fffbf0;
    border: 1px solid #f0e0b0;
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
}

.calc-totales {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #555;
}

.calc-precio-total {
    font-size: 1.2rem;
    color: var(--negro);
    font-weight: 700;
}

.calc-precio-total strong {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--rojo);
    font-size: 1.5rem;
}

.modal-add-btn {
    margin-top: auto;
    width: 100%;
    background: var(--rojo);
    color: white;
    border: none;
    padding: 1.1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-add-btn:hover {
    background: var(--rojo-oscuro);
}

.modal-direct-btn {
    margin-top: 0.6rem;
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 0.95rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.modal-direct-btn:hover {
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ============================================
   RESPONSIVE MODAL
   ============================================ */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-left {
        border-radius: 6px 6px 0 0;
        padding: 1.5rem;
    }

    .modal-img-wrap {
        height: 220px;
    }

    .modal-right {
        padding: 1.5rem;
    }

    .product-btns {
        flex-direction: column;
    }
}

/* ============================================
   CARRITO - Controles por caja
   ============================================ */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0.3rem;
}

.cart-ctrl-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-ctrl-btn:hover {
    background: var(--rojo);
    border-color: var(--rojo);
    color: white;
}

.cart-ctrl-delete {
    margin-left: auto;
    background: transparent;
    border-color: #555;
}

.cart-ctrl-delete:hover {
    background: #8B0000;
    border-color: #8B0000;
}

.cart-ctrl-qty {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    min-width: 55px;
    text-align: center;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.3rem 0.4rem;
}

/* ============================================
   NOSOTROS - Beneficios + Mapa
   ============================================ */
.nosotros-section {
    background: var(--blanco);
}

.benefits-wrapper {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Reutiliza .benefits-grid y .benefit-card existentes */

.ubicacion-wrapper {
    background: var(--crema);
    padding: 6rem 5%;
    border-top: 1px solid var(--rojo-suave);
}

.ubicacion-grid {
    max-width: 1400px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: stretch;
    min-height: 420px;
}

/* Info lateral */
.ubicacion-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ubicacion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ubicacion-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--rojo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubicacion-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 0.3rem;
}

.ubicacion-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.ubicacion-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background: var(--rojo);
    color: var(--blanco);
    padding: 0.85rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    align-self: flex-start;
}

.ubicacion-cta:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}

/* Mapa */
.mapa-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 3px solid var(--rojo-suave);
    min-height: 420px;
}

/* Responsive */
@media (max-width: 768px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .mapa-container {
        min-height: 300px;
    }
}

/* ============================================
   FOOTER - Medios de Pago
   ============================================ */
.footer-pagos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.pago-tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.82);
    padding: 0.45rem 0.7rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.pago-tag:hover {
    background: rgba(192,21,42,0.25);
    border-color: var(--rojo);
}

/* ============================================
   MODAL - Toggle Piso / Ambientación
   ============================================ */
.modal-img-wrap {
    position: relative;
}

.modal-img-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-img-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.modal-img-activa {
    opacity: 1;
    pointer-events: auto;
}

.modal-img-toggle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.modal-toggle-btn {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.modal-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-toggle-activo {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    font-weight: 700;
}

/* ============================================
   MODAL - Toggle Piso / Ambientación
   ============================================ */
.modal-img-wrap {
    position: relative;
}
.modal-img-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.modal-img-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.modal-img-activa {
    opacity: 1;
    pointer-events: auto;
}
.modal-img-toggle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.modal-toggle-btn {
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.modal-toggle-btn:hover { background: rgba(0,0,0,0.8); }
.modal-toggle-activo {
    background: rgba(255,255,255,0.18);
    border-color: #fff;
    font-weight: 700;
}

/* ============================================
   MODAL - Solicitar Cotización
   ============================================ */
.cotizacion-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2000;
    backdrop-filter: blur(3px);
}
.cotizacion-overlay.active { display: block; }

.cotizacion-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2100;
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.2rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cotizacion-modal.active { display: block; }

.cotizacion-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.cotizacion-close:hover { color: #c0152a; }

.cotizacion-header {
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}
.cotizacion-header h2 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}
.cotizacion-header p {
    color: #777;
    font-size: 0.9rem;
}

/* Resumen de productos */
.cotizacion-resumen {
    background: #f8f6f4;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.4rem;
    font-size: 0.88rem;
}
.cotizacion-resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.3rem 0;
    border-bottom: 1px solid #ece9e5;
    color: #333;
}
.cotizacion-resumen-item:last-child { border-bottom: none; }
.cotizacion-resumen-item span:first-child { font-weight: 600; }
.cotizacion-resumen-item span:last-child { color: #888; font-size: 0.82rem; }
.cotizacion-resumen-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 2px solid #ddd;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
}

/* Campos del formulario */
.cotizacion-form { display: flex; flex-direction: column; gap: 1rem; }

.cotizacion-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cotizacion-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
}
.cotizacion-field input,
.cotizacion-field textarea {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    color: #1a1a1a;
    transition: border-color 0.2s;
    outline: none;
    background: #fafafa;
}
.cotizacion-field input:focus,
.cotizacion-field textarea:focus {
    border-color: #c0152a;
    background: #fff;
}
.cotizacion-field textarea {
    resize: vertical;
    min-height: 80px;
}

.cotizacion-error {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    color: #c0152a;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.87rem;
}

.cotizacion-enviar-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.95rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.cotizacion-enviar-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.cotizacion-enviar-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pantalla de éxito */
.cotizacion-exito {
    text-align: center;
    padding: 2rem 1rem;
}
.cotizacion-exito-icono { font-size: 3.5rem; margin-bottom: 1rem; }
.cotizacion-exito h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.cotizacion-exito p { color: #666; font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 480px) {
    .cotizacion-modal { padding: 1.5rem 1.2rem; }
    .cotizacion-header h2 { font-size: 1.3rem; }
}
