/* ================= RESET BÁSICO ================= */
html, body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ================= VARIABLES ================= */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #20c997;
    --secondary-dark: #1ba87a;
    --accent: #ff6b6b;
    --accent-dark: #ff5252;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --gray-extra-light: #f2f2f2;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 10px;
}

/* ================= BREADCRUMBS ================= */
.breadcrumbs {
    background: var(--gray-extra-light);
    padding: 0.7rem 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    color: var(--gray);
}

.breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.breadcrumbs a:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.breadcrumbs a::before {
    content: "🏠";
    font-size: 0.9rem;
}

.breadcrumbs span {
    color: var(--gray-light);
    font-weight: 400;
}

.breadcrumbs .separator {
    color: #ced4da;
    margin: 0 0.2rem;
}

/* ================= ESTRUCTURA PRINCIPAL ================= */
.tienda-detalle {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    grid-auto-rows: min-content;
    box-sizing: border-box;
}

/* ================= SCREENSHOT ================= */
.screenshot-tienda {
    grid-column: 2;
    position: sticky;
    top: 90px;
    align-self: start;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.screenshot-label {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    background: var(--gray-extra-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px dashed #ccc;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.screenshot-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.screenshot-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screenshot-link::after {
    content: "🔗 Haz clic para visitar la tienda";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    text-align: center;
    padding: 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    
    transition: opacity 0.3s ease;
    border-radius: 0 0 var(--radius) var(--radius);
}

.screenshot-link:hover::after {
    opacity: 1;
}

.screenshot-link img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    border: 1px solid #eee;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: top;
}

.screenshot-link:hover img {
    transform: scale(1.01);
}

/* ================= CONTENIDO PRINCIPAL - CENTRADO EN PC ================= */
.contenido-tienda {
    grid-column: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================= HEADER DE TIENDA ================= */
.tienda-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.8rem;
    background: var(--gray-extra-light);
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    min-height: 160px;
}

/* Logo */
.tienda-logo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tienda-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

/* Información principal */
.tienda-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    min-height: 140px;
}

.tienda-info h1 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Metadatos */
.tienda-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.5rem 0;
}

.rubro, .ubicacion {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-weight: 500;
}

.rubro::before {
    content: '🏷️';
    font-size: 0.9rem;
    opacity: 0.8;
}

.ubicacion::before {
    content: '📍';
    font-size: 0.9rem;
    opacity: 0.8;
}

/* BOTONES */
.btn-visitar-tienda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 280px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.btn-visitar-tienda::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-visitar-tienda:hover {
    background: linear-gradient(135deg, var(--accent-dark), #ff4040);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
}

.btn-visitar-tienda:hover::before {
    left: 100%;
}

.btn-visitar-tienda:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
}

/* ================= SECCIONES - CENTRADAS EN PC ================= */
.seccion-tienda {
    background: var(--gray-extra-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.seccion-tienda h2 {
    color: var(--dark);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.descripcion-tienda {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
    padding: 0.3rem 0;
}

/* ================= MÉTODOS EN DOS COLUMNAS ================= */
.grid-servicios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
}

/* Secciones de métodos */
.grid-servicios .seccion-tienda {
    margin-bottom: 0;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-servicios .seccion-tienda h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

/* Lista de métodos */
.metodos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
    flex: 1;
}

.metodo-item {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.2s ease;
    min-height: 45px;
    font-size: 0.9rem;
}

.metodo-item:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.metodo-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.metodo-item span {
    color: var(--dark);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

/* Texto cuando no hay información */
.no-info {
    color: var(--gray-light);
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    padding: 1.5rem 0;
    grid-column: 1 / -1;
    background: white;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

/* ================= INFORMACIÓN DE CONTACTO ================= */
.info-contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contacto-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    min-height: 50px;
    font-size: 1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.contacto-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-height: inherit;
}

.contacto-link:hover {
    background: #f8f9fa;
}

.contacto-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.contacto-link i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contacto-link span {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.contacto-link:hover span {
    color: var(--primary);
}

/* Estilos específicos para email y WhatsApp */
.contacto-link[href^="mailto:"] i {
    color: #D44638;
}

.contacto-link[href^="https://wa.me"] i {
    color: #25D366;
}

.contacto-link[href^="mailto:"]:hover {
    background: rgba(212, 70, 56, 0.1);
}

.contacto-link[href^="https://wa.me"]:hover {
    background: rgba(37, 211, 102, 0.1);
}

/* ================= CTA HORIZONTAL ================= */
.cta-horizontal {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.cta-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cta-horizontal h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cta-horizontal p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    max-width: 500px;
}

/* Botón CTA horizontal */
.btn-cta-horizontal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: white;
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid white;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    min-width: 220px;
}

.btn-cta-horizontal:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-cta-horizontal:active {
    transform: translateY(-1px);
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {
    .tienda-detalle {
        grid-template-columns: 1fr 0.9fr;
        gap: 1.8rem;
        padding: 1.2rem;
    }
    
    .tienda-header {
        padding: 1.5rem;
        gap: 1.2rem;
        max-width: 100%;
    }
    
    .tienda-logo {
        width: 120px;
        height: 120px;
    }
    
    .tienda-info h1 {
        font-size: 1.8rem;
    }
    
    .btn-visitar-tienda {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }
    
    .seccion-tienda,
    .grid-servicios,
    .cta-horizontal {
        max-width: 100%;
    }
}

/* Tablet Pequeña - Móvil */
@media (max-width: 768px) {

    .tienda-detalle {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding: 1rem;
    }

    /* ===== SCREENSHOT ARRIBA ===== */
    .screenshot-tienda {
        order: -1;
        position: static;
        margin: 0 auto;
        width: 100%;
        max-width: 600px;
    }

    .screenshot-link {
        display: block;
        width: 100%;
        border-radius: var(--radius);
        overflow: hidden;
    }

    /* IMAGEN UN POCO MÁS BAJA */
    .screenshot-link img {
        width: 100%;
        display: block;
        object-fit: cover;
        object-position: top;
        max-height: 300px;      /* 👈 más chica */
        min-height: 200px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    /* TEXTO SIEMPRE VISIBLE */
    .screenshot-link::after {
        content: "🔗 Toca para visitar la tienda";
        display: block;
        width: 100%;
        background: linear-gradient(to right, var(--primary), var(--primary-dark));
        color: #fff;
        font-size: 0.85rem;
        font-weight: 600;
        text-align: center;
        padding: 0.7rem;
        box-sizing: border-box;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    /* ===== HEADER ===== */
    .tienda-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
        max-width: 100%;
    }

    .tienda-logo {
        width: 100px;
        height: 100px;
    }

    .logo-placeholder {
        font-size: 2.5rem;
    }

    .tienda-info {
        align-items: center;
        min-height: auto;
    }

    .tienda-info h1 {
        font-size: 1.6rem;
    }

    .tienda-meta {
        justify-content: center;
    }

    .btn-visitar-tienda {
        max-width: 100%;
    }

    .grid-servicios {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 100%;
    }

    .seccion-tienda {
        max-width: 100%;
    }

    .info-contacto {
        grid-template-columns: 1fr;
    }

    .contacto-item {
        min-height: 48px;
    }

    .contacto-link {
        padding: 0.8rem 1rem;
    }

    .contacto-link span {
        font-size: 0.95rem;
    }

    .cta-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 100%;
    }

    .btn-cta-horizontal {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
}
@media (max-width: 480px) {

    .tienda-detalle {
        padding: 0.8rem;
    }

    /* IMAGEN AÚN MÁS BAJA */
    .screenshot-link img {
        max-height: 240px;
        min-height: 180px;
    }

    .screenshot-link::after {
        font-size: 0.8rem;
        padding: 0.6rem;
        content: "🔗 Toca para visitar";
    }

    .tienda-header {
        padding: 1rem;
    }

    .tienda-logo {
        width: 80px;
        height: 80px;
    }

    .logo-placeholder {
        font-size: 2rem;
    }

    .tienda-info h1 {
        font-size: 1.4rem;
    }

    .rubro,
    .ubicacion {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .seccion-tienda {
        padding: 1rem;
    }

    .seccion-tienda h2 {
        font-size: 1.1rem;
    }

    .metodos-lista {
        grid-template-columns: repeat(2, 1fr);
    }

    .metodo-item {
        padding: 0.6rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .btn-visitar-tienda,
    .btn-cta-horizontal {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }

    .cta-horizontal {
        padding: 1.2rem;
    }

    .cta-horizontal h3 {
        font-size: 1.2rem;
    }
}


/* ================= UTILIDADES ================= */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body {
    font-size: 16px;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

a, button, .btn-visitar-tienda, .btn-cta-horizontal, .contacto-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}