/* 
 * Estilos personalizados - El Taller 3D
 * Identidad corporativa: naranja + marrón, estética técnica e industrial
 */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #7c3f00;
    --gold-color: #e86100;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

/* General */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

/* Headings dentro de fondos oscuros — forzar blanco */
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: #ffffff;
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d1f00 100%);
}

.top-bar a:hover {
    color: var(--gold-color) !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* Logo */
.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-primary {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.brand-secondary {
    color: var(--secondary-color);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-top: 2px;
    line-height: 1.2;
    max-width: 280px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d1f00 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.05)"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Secciones */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--gold-color));
}

/* Tarjetas de Producto */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--gold-color);
}

.product-card img:not(.card-marca-logo) {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.product-card:hover img:not(.card-marca-logo) {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.product-card .product-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.badge-novedad {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge-descontinuada {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e65100;
    color: white;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .04em;
    z-index: 2;
}

/* ── Overlays sobre imagen de tarjeta de producto ──────────── */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 1 / 1;   /* igual que prod-main-img en la ficha */
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img-wrapper img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}
.product-card:hover .card-img-wrapper img.card-img-top {
    transform: scale(1.05);
}
/* Triángulo NOVEDAD esquina superior derecha (tarjeta tienda) */
.card-nov {
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    z-index: 5;
    pointer-events: none;
}
.card-nov::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, #e65000 0%, #ff9800 100%);
    clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
}
.card-nov > span {
    position: absolute;
    top: 52px; right: -4px;
    width: 100px;
    text-align: center;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    transform: rotate(45deg);
    transform-origin: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
    white-space: nowrap;
}
/* Logo marca esquina superior izquierda */
.card-marca-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    pointer-events: none;
    max-width: 30%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
    display: block;
}
/* Cinta diagonal DESCONTINUADO sobre imagen de tarjeta */
.card-disc-ribbon::before,
.card-disc-ribbon::after {
    content: 'DESCONTINUADO';
    position: absolute;
    width: 180px;
    text-align: center;
    background: #e65100;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 5px 0;
    transform: rotate(45deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.card-disc-ribbon::before {
    top: 38px; right: -42px;
}
.card-disc-ribbon::after {
    bottom: 38px; left: -42px;
}
/* Cinta diagonal NOVEDAD sobre imagen de tarjeta */
.card-nov-ribbon::before,
.card-nov-ribbon::after {
    content: 'NOVEDAD';
    position: absolute;
    width: 180px;
    text-align: center;
    background: linear-gradient(135deg, #e65000, #ff9800);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 5px 0;
    transform: rotate(45deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.card-nov-ribbon::before {
    top: 38px; right: -42px;
}
.card-nov-ribbon::after {
    bottom: 38px; left: -42px;
}
/* Badge material esquina inferior derecha */
.card-mat-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    z-index: 3;
    pointer-events: none;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    text-transform: uppercase;
}
.card-mat-badge.mat-PLA        { background: #2e7d32; }
.card-mat-badge.mat-PETG       { background: #1565c0; }
.card-mat-badge.mat-ABS        { background: #424242; }
.card-mat-badge.mat-ASA        { background: #e65100; }
.card-mat-badge.mat-SILK       { background: #6a1b9a; }
.card-mat-badge.mat-PA         { background: #00695c; }
.card-mat-badge.mat-PC         { background: #283593; }
.card-mat-badge.mat-PVA        { background: #0097a7; }
.card-mat-badge.mat-HIPS       { background: #bf360c; }
.card-mat-badge.mat-PP         { background: #558b2f; }
.card-mat-badge.mat-TPU        { background: #ad1457; }
.card-mat-badge.mat-Resina     { background: #b71c1c; }
.card-mat-badge.mat-Recambio   { background: #546e7a; }
.card-mat-badge.mat-Herramienta{ background: #37474f; }
.card-mat-badge.mat-Otro       { background: #757575; }

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gold-color) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 97, 0, 0.4);
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--secondary-color) 100%);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    margin-top: 3rem;
}

.footer h5 {
    color: var(--gold-color);
    font-family: 'Montserrat', sans-serif;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--gold-color) !important;
    padding-left: 5px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

/* Carrito */
.cart-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--gold-color);
}

.cart-summary .total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Logo responsive */
    .logo-img {
        height: 45px;
    }
    
    .brand-primary {
        font-size: 1rem;
    }
    
    .brand-secondary {
        font-size: 0.6rem;
        max-width: 200px;
    }
    
    .navbar-brand {
        padding: 0.25rem 0;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Tabla de productos */
.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Filtros de búsqueda */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================
   BREADCRUMBS MEJORADAS
   ============================================ */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f285"; /* Bootstrap Icons chevron-right */
    font-family: 'bootstrap-icons' !important;
    color: #999;
    font-size: 0.75rem;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover::before {
    content: "\f105"; /* home icon for hover effect */
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.3rem;
    }
}

/* ============================================
   BARRA DE CONFIANZA (TRUST BAR)
   ============================================ */
.trust-bar {
    background: #f4f4f4;
    border-top: 1px solid #e0e0e0;
    border-bottom: 3px solid var(--gold-color);
    padding: .85rem 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1 1 180px;
    min-width: 160px;
}
.trust-icon {
    font-size: 1.6rem;
    color: var(--gold-color);
    line-height: 1;
    flex-shrink: 0;
}
.trust-icon--sm { font-size: 1.3rem; }
.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.trust-text strong {
    font-size: .82rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.trust-text small {
    font-size: .72rem;
    color: var(--text-light);
}
.trust-sep {
    width: 1px;
    height: 36px;
    background: #d5d5d5;
    flex-shrink: 0;
}
/* Pills de métodos de pago */
.payment-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.ppill {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.5;
}
.ppill--visa    { background: #1a1f71; color: #fff; }
.ppill--mc      { background: #eb001b; color: #fff; }
.ppill--bizum   { background: #5d3be8; color: #fff; }
.ppill--paypal  { background: #003087; color: #fff; }

/* ============================================
   FRANJA NEWSLETTER
   ============================================ */
.newsletter-strip {
    background: linear-gradient(95deg, var(--secondary-color) 0%, var(--gold-color) 100%);
    padding: 1.1rem 0;
}
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.newsletter-copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    color: #fff;
}
.newsletter-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}
.newsletter-sub {
    font-size: .78rem;
    opacity: .88;
    margin-top: 2px;
}
.newsletter-form {
    flex: 0 1 420px;
    min-width: 260px;
}
.newsletter-input-group {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.55);
    transition: border-color .2s;
}
.newsletter-input-group:focus-within {
    border-color: #fff;
    background: rgba(255,255,255,.28);
}
.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .45rem 1rem;
    color: #fff;
    font-size: .88rem;
    outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.75); }
.newsletter-btn {
    background: rgba(255,255,255,.25);
    border: none;
    color: #fff;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background .2s;
    display: flex;
    align-items: center;
}
.newsletter-btn:hover { background: rgba(255,255,255,.4); }
.newsletter-btn:disabled { opacity: .5; cursor: not-allowed; }
.newsletter-check {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .35rem;
    font-size: .72rem;
    color: rgba(255,255,255,.85);
    cursor: pointer;
}
.newsletter-check a { color: #fff; text-decoration: underline; }
.newsletter-feedback {
    font-size: .75rem;
    margin-top: .3rem;
    min-height: 1em;
}
.newsletter-feedback--ok    { color: #fff; font-weight: 600; }
.newsletter-feedback--error { color: #ffe0c0; }

@media (max-width: 767px) {
    .trust-sep  { display: none; }
    .trust-item { flex: 1 1 45%; }
    .newsletter-inner { flex-direction: column; align-items: flex-start; }
    .newsletter-form  { width: 100%; }
}

/* ============================================
   PÁGINA REPARACIÓN
   ============================================ */

/* Hero */
.rep-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a00 60%, #3d2200 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.rep-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 0H6L0 6v48l6 6h48l6-6V6L54 0zm-2 52H8L4 48V12L8 8h44l4 4v36l-4 4z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.rep-hero-content { position: relative; max-width: 700px; }
.rep-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(232,97,0,.2);
    border: 1px solid rgba(232,97,0,.4);
    color: #ffb36b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.rep-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.rep-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 1.8rem;
    max-width: 560px;
}
.rep-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Botones reparación */
.btn-rep-primary {
    background: var(--gold-color);
    color: #fff;
    border: 2px solid var(--gold-color);
    border-radius: 6px;
    padding: .6rem 1.4rem;
    font-weight: 700;
    font-size: .9rem;
    transition: background .2s, transform .15s;
}
.btn-rep-primary:hover { background: #c95400; border-color: #c95400; color: #fff; transform: translateY(-1px); }
.btn-rep-outline {
    background: transparent;
    color: rgba(255,255,255,.85);
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 6px;
    padding: .6rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    transition: border-color .2s, color .2s;
}
.btn-rep-outline:hover { border-color: rgba(255,255,255,.75); color: #fff; }

/* Trust strip */
.rep-trust-strip {
    background: var(--secondary-color);
    padding: .7rem 0;
}
.rep-trust-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: .6rem;
}
.rep-trust-pill {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.9);
    font-size: .82rem;
    font-weight: 600;
}
.rep-trust-pill i { color: #ffb36b; font-size: 1.1rem; }

/* Sección genérica */
.rep-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--primary-color);
}
.rep-section-sub {
    color: var(--text-light);
    font-size: .95rem;
    max-width: 560px;
    margin: .4rem auto 0;
}

/* Tarjetas ¿Qué reparamos? */
.rep-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.rep-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-3px);
}
.rep-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(232,97,0,.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--gold-color);
}
.rep-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.rep-card p  { font-size: .82rem; color: var(--text-light); margin: 0; line-height: 1.55; }
.rep-card--highlight { border-color: var(--gold-color); background: linear-gradient(135deg, #fff9f5, #fff); }
.rep-card--highlight .rep-card-icon { background: rgba(232,97,0,.18); }

/* Cómo funciona */
.rep-steps {
    background: #f8f8f8;
    padding: 4rem 0;
}
.rep-steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.rep-step {
    flex: 1 1 160px;
    max-width: 220px;
    text-align: center;
    padding: 0 1rem;
}
.rep-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gold-color);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-bottom: .8rem;
}
.rep-step h5 { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.rep-step p  { font-size: .8rem; color: var(--text-light); line-height: 1.55; }
.rep-step-arrow {
    color: #c8c8c8;
    font-size: 1.4rem;
    align-self: center;
    padding: 0 .5rem;
    margin-top: -1rem;
}

/* Tarifas */
.rep-tarifa-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 1.6rem;
    height: 100%;
}
.rep-tarifa-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.rep-tarifa-header > i { font-size: 2rem; color: var(--gold-color); flex-shrink: 0; margin-top: 2px; }
.rep-tarifa-header h5 { font-weight: 700; margin-bottom: .2rem; font-size: .95rem; }
.rep-price { font-size: 1.6rem; font-weight: 800; color: var(--gold-color); font-family: 'Montserrat', sans-serif; }
.rep-price-sub { font-size: 1rem; font-weight: 700; color: var(--text-light); }
.rep-tarifa-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.rep-tarifa-list li {
    display: flex;
    gap: .6rem;
    font-size: .83rem;
    line-height: 1.5;
    color: #444;
}
.rep-tarifa-list li i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.rep-tarifa-card--garantia {
    border-color: #28a745;
    background: linear-gradient(135deg, #f6fff8, #fff);
}
.rep-tarifa-card--garantia .rep-tarifa-header > i { color: #28a745; }
.rep-tarifa-card--garantia .rep-tarifa-header h5 { color: #1a6c2e; }

/* Formulario */
.rep-form-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.rep-form-group-title {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    border-bottom: 2px solid #f0e8e0;
    padding-bottom: .4rem;
    margin-bottom: 1rem;
}
.rep-modalidad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.rep-modalidad-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.1rem .8rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
    position: relative;
}
.rep-modalidad-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.rep-modalidad-option.selected,
.rep-modalidad-option:has(input:checked) {
    border-color: var(--gold-color);
    background: #fff9f5;
}
.rep-modalidad-icon { font-size: 1.8rem; color: var(--gold-color); line-height: 1; }
.rep-modalidad-label { font-weight: 700; font-size: .88rem; }
.rep-modalidad-detail { font-size: .73rem; }

/* File drop */
.rep-file-drop {
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, background .2s;
}
.rep-file-drop:hover,
.rep-file-drop.dragging { border-color: var(--gold-color); background: #fff9f5; }
.rep-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    cursor: pointer;
    z-index: -1;
}
.rep-file-browse { color: var(--gold-color); font-weight: 600; text-decoration: underline; cursor: pointer; }
.rep-file-list { display: flex; flex-direction: column; gap: .35rem; }
.rep-file-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f4f4f4;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .8rem;
}
.rep-file-item i { color: var(--gold-color); }
.rep-file-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-file-item small { color: var(--text-light); flex-shrink: 0; }
.rep-file-item--error { background: #fff0f0; border: 1px solid #fcc; }
.rep-file-item--error i { color: #dc3545; }

/* Caja de éxito */
.rep-success-box {
    text-align: center;
    background: #fff;
    border: 1px solid #d1e8cc;
    border-radius: 12px;
    padding: 3rem 2rem;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.rep-success-icon {
    font-size: 4rem;
    color: #28a745;
    line-height: 1;
    margin-bottom: 1rem;
}
.rep-success-box h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; }

/* Responsive reparación */
@media (max-width: 767px) {
    .rep-hero { padding: 3.5rem 0 2.5rem; }
    .rep-steps-row { flex-direction: column; align-items: center; }
    .rep-step-arrow { transform: rotate(90deg); margin: -.5rem 0; }
    .rep-modalidad-grid { grid-template-columns: 1fr; }
    .rep-form-card { padding: 1.2rem; }
}

/* Contenedor principal del carrusel */
.products-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

/* Carrusel scrolleable */
.products-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f1f1f1;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch; /* Smooth scroll en iOS */
}

/* Scrollbar personalizado (Webkit) */
.products-carousel::-webkit-scrollbar {
    height: 8px;
}

.products-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.products-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--gold-color);
}

/* Tarjeta individual del carrusel */
.carousel-product-card {
    flex: 0 0 280px; /* Ancho fijo para cada tarjeta */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* Efecto hover en la tarjeta */
.carousel-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

/* Wrapper de la imagen */
.carousel-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen del producto */
.carousel-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

/* Efecto zoom en hover */
.carousel-product-card:hover .carousel-product-img {
    transform: scale(1.08);
}

/* Cuerpo de la tarjeta */
.carousel-card-body {
    padding: 1.25rem;
}

/* Título del producto */
.carousel-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-product-title a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.carousel-product-title a:hover {
    color: var(--secondary-color);
}

/* Enlace envolvente de la tarjeta */
.card-link {
    text-decoration: none;
    display: block;
}

/* Controles del carrusel */
.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* RESPONSIVE */

/* Tablets */
@media (max-width: 992px) {
    .carousel-product-card {
        flex: 0 0 240px;
    }
    
    .carousel-img-wrapper {
        height: 280px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .carousel-product-card {
        flex: 0 0 200px;
    }
    
    .carousel-img-wrapper {
        height: 240px;
    }
    
    .carousel-card-body {
        padding: 1rem;
    }
    
    .carousel-product-title {
        font-size: 0.875rem;
    }
    
    .carousel-controls {
        display: none; /* Ocultar controles en móvil, usar swipe */
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .carousel-product-card {
        flex: 0 0 160px;
    }
    
    .carousel-img-wrapper {
        height: 200px;
    }
    
    .products-carousel {
        gap: 1rem;
    }
}
