:root {
    --navy: #17246b;
    --ink: #172033;
    --muted: #657084;
    --line: #e7eaf1;
    --soft: #f5f7fb;
    --magenta: #d61f8c;
    --cyan: #00a6c8;
    --green: #22a06b;
    --white: #fff;
    --shadow: 0 18px 45px rgba(18, 28, 61, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand, .main-nav a, .btn, button, .cart-link {
    font-family: 'Outfit', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
    align-items: center;
    background: var(--navy);
    color: white;
    display: flex;
    font-size: 13px;
    justify-content: center;
    gap: 24px;
    padding: 9px 20px;
}

.topbar a { color: white; font-weight: 700; }

.site-header {
    align-items: center;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 16px 6vw;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.brand img { height: 44px; object-fit: contain; }

.main-nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a { color: #2a3144; }
.main-nav a:hover { color: var(--magenta); }

.cart-link, .btn, button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.cart-link {
    background: #111827;
    color: white;
    padding: 11px 18px;
}

.messages { padding: 14px 6vw 0; }
.message {
    background: #eefcf6;
    border: 1px solid #bdebd6;
    border-radius: 8px;
    color: #0f6845;
    padding: 12px 14px;
}

.hero {
    align-items: center;
    background:
        radial-gradient(circle at 85% 10%, rgba(214,31,140,.13), transparent 26%),
        linear-gradient(135deg, #f7f9ff 0%, #ffffff 58%, #eef9fb 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 44px;
    min-height: 680px;
    padding: 72px 6vw 54px;
}

.hero h1 {
    color: var(--navy);
    font-size: clamp(62px, 10vw, 128px);
    line-height: .9;
    margin: 10px 0 22px;
}

.hero p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
    max-width: 650px;
}

.eyebrow {
    color: var(--magenta);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero-actions, .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    padding: 14px 20px;
}

.btn.primary {
    background: var(--navy);
    color: white;
}

.btn.ghost {
    background: white;
    border: 1px solid var(--line);
    color: var(--navy);
}

.hero-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.hero-media img {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 470px;
    object-fit: cover;
    width: 100%;
}

.hero-media img:first-child { height: 560px; object-position: top; }

.section {
    padding: 64px 6vw;
}

.strip {
    background: #111827;
    color: white;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    padding: 0 6vw;
}

.strip span {
    border-left: 1px solid rgba(255,255,255,.15);
    font-size: 13px;
    font-weight: 900;
    padding: 18px 10px;
    text-align: center;
    text-transform: uppercase;
}

.section-head {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head h2, .page-title h1, .split h2 {
    color: var(--ink);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    margin: 0;
}

.section-head a {
    color: var(--navy);
    font-weight: 900;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.school-logo {
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 16px;
    text-align: center;
}

.school-logo img {
    height: 82px;
    margin: auto;
    object-fit: contain;
}

.school-logo span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.product-band { background: var(--soft); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}

.product-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    background: #f4f5f8;
    display: block;
    position: relative;
}

.product-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

.heart {
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: grid;
    font-size: 24px;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
}

.product-info { padding: 16px; }
.product-school {
    color: var(--magenta);
    font-size: 12px;
    font-weight: 900;
    margin: 0 0 7px;
}
.product-info h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.product-info p { color: var(--muted); font-size: 13px; }

.product-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.product-actions button, .filters button, .cart-item button {
    background: var(--navy);
    color: white;
    padding: 10px 12px;
}

.split {
    align-items: center;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
}

.split p { color: var(--muted); line-height: 1.65; }

.sheet-stack {
    display: grid;
    gap: 16px;
}

.mini-sheet, .sheet-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.mini-sheet {
    align-items: center;
    background: white;
    display: grid;
    grid-template-columns: 110px 1fr;
}

.mini-sheet img {
    height: 120px;
    object-fit: cover;
    width: 110px;
}

.mini-sheet div { padding: 16px; }
.mini-sheet span, .sheet-content p { color: var(--accent); font-weight: 900; font-size: 12px; }
.mini-sheet h3 { color: var(--primary); margin: 5px 0 0; }

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.review-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.review-card span { color: var(--green); display: block; font-weight: 900; margin: 8px 0; }
.review-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.page-title {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    padding: 48px 6vw;
}

.page-title p { color: var(--muted); max-width: 720px; }

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 42px 6vw 70px;
}

.filters {
    align-self: start;
    border-right: 1px solid var(--line);
    padding-right: 22px;
    position: sticky;
    top: 94px;
}

.filters h2 { font-size: 17px; text-transform: uppercase; }
.filters form { display: grid; gap: 12px; }
.filters label { color: var(--ink); font-size: 13px; font-weight: 900; margin-top: 8px; }
.filters input, .filters select {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    padding: 12px;
    width: 100%;
}

.clear-link { color: var(--muted); font-size: 13px; font-weight: 800; text-align: center; }

.catalog-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.catalog-toolbar span { color: var(--muted); }

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 42px;
    padding: 56px 6vw;
}

.main-detail-image {
    background: var(--soft);
    border-radius: 8px;
    max-height: 720px;
    object-fit: contain;
    width: 100%;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.thumb-row img {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.detail-info h1 { font-size: 42px; line-height: 1.05; }
.detail-info p { color: var(--muted); line-height: 1.65; }
.price { display: block; font-size: 28px; margin: 22px 0; }
.detail-box {
    background: var(--soft);
    border-radius: 8px;
    margin-top: 24px;
    padding: 18px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 42px 6vw 70px;
}

.cart-list { display: grid; gap: 14px; }

.cart-item {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 18px;
    padding: 14px;
}

.cart-item img {
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-card {
    align-self: start;
    background: #111827;
    border-radius: 8px;
    color: white;
    padding: 24px;
}

.checkout-card p { color: #d5d8e2; line-height: 1.55; }
.checkout-card strong { display: block; font-size: 34px; margin: 10px 0 18px; }

.sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 46px 6vw 70px;
}

.sheet-card {
    background: white;
    box-shadow: var(--shadow);
}

.sheet-preview { position: relative; }
.sheet-preview img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}
.sheet-badge {
    background: var(--primary);
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    left: 14px;
    padding: 8px 12px;
    position: absolute;
    top: 14px;
}
.sheet-content { padding: 20px; }
.sheet-content h2 { color: var(--primary); margin: 6px 0; }
.sheet-content span { color: var(--muted); display: block; margin-bottom: 12px; }

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    padding: 46px 6vw 70px;
}

.post-grid { display: grid; gap: 22px; }
.post-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
}
.post-card img { height: 100%; object-fit: cover; width: 100%; }
.post-card div { padding: 22px; }
.post-card h2 { margin-top: 0; }
.post-card p { color: var(--muted); line-height: 1.6; }
.post-card a { color: var(--navy); font-weight: 900; }
.reviews-aside { display: grid; gap: 14px; align-self: start; }

.article-detail {
    margin: 0 auto;
    max-width: 900px;
    padding: 52px 24px 80px;
}
.article-detail > img {
    border-radius: 8px;
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}
.article-detail h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.lead, .article-body { color: var(--muted); font-size: 18px; line-height: 1.75; }

.contact-hero {
    align-items: center;
    background: linear-gradient(135deg, #f7f9ff, #ffffff);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    padding: 70px 6vw;
}

.contact-hero h1 { color: var(--navy); font-size: clamp(46px, 8vw, 94px); margin: 0; }
.contact-hero p { color: var(--muted); line-height: 1.65; }

.contact-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 26px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-buttons a, .socials a {
    background: var(--soft);
    border-radius: 8px;
    color: var(--navy);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 12px;
}

.map-section { padding: 0 6vw 70px; }
.map-section iframe {
    border: 0;
    border-radius: 8px;
    height: 420px;
    width: 100%;
}

.empty-state {
    background: var(--soft);
    border: 1px dashed #cbd2df;
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
}

.footer {
    background: #0f172a;
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 42px 6vw;
}

.footer p { color: #cbd5e1; line-height: 1.55; }
.footer-logo { background: white; border-radius: 8px; height: 48px; padding: 6px; }

@media (max-width: 900px) {
    .site-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .main-nav { flex-wrap: wrap; gap: 14px; }
    .hero, .split, .catalog-layout, .product-detail, .cart-layout, .blog-layout, .contact-hero, .footer {
        grid-template-columns: 1fr;
    }
    .hero { min-height: auto; }
    .hero-media img, .hero-media img:first-child { height: 380px; }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .filters { border-right: 0; padding-right: 0; position: static; }
    .post-card { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 78px 1fr; }
    .cart-item strong, .cart-item form { grid-column: 2; }
}

@media (max-width: 560px) {
    .topbar { flex-direction: column; gap: 4px; }
    .hero-media { grid-template-columns: 1fr; }
    .hero-media img, .hero-media img:first-child { height: auto; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ESTILOS PREMIUM - ADICIONALES YOALIF
   ========================================================================== */

/* Barra Superior */
.topbar {
    background: linear-gradient(135deg, #17246b 0%, #1e1b4b 100%);
    padding: 10px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.topbar-location {
    display: inline-flex;
    align-items: center;
    opacity: 0.95;
    font-weight: 600;
}
.topbar-wa-link {
    display: inline-flex;
    align-items: center;
    background: rgba(37, 211, 102, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}
.topbar-wa-link:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.15);
}

/* Título Premium en Hero */
.hero-title-premium {
    color: var(--navy);
    font-size: clamp(38px, 6vw, 68px) !important;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #17246b 0%, #d61f8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0 16px;
}
.hero-subtitle-premium {
    display: block;
    font-size: 0.35em;
    font-weight: 700;
    color: var(--muted);
    background: none;
    -webkit-text-fill-color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Carrusel de Banners */
.hero-carousel-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.hero-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    background: #ffffff;
}
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(23, 36, 107, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.carousel-control:hover {
    background: rgba(214, 31, 140, 0.85);
    transform: translateY(-50%) scale(1.1);
}
.carousel-control.prev { left: 12px; }
.carousel-control.next { right: 12px; }

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicators .indicator.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* Redes Sociales - Botones SVG */
.social-icon-btn:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.social-icon-btn.whatsapp:hover { background: #25d366 !important; }
.social-icon-btn.facebook:hover { background: #1877f2 !important; }
.social-icon-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; }

.social-icon-btn-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
}
.social-icon-btn-large.whatsapp:hover { background: #25d366 !important; }
.social-icon-btn-large.facebook:hover { background: #1877f2 !important; }
.social-icon-btn-large.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; }

/* Chatbot de Colegios Flotante */
.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.chatbot-toggle {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #17246b 0%, #d61f8c 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(214, 31, 140, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.chatbot-toggle:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 24px rgba(214, 31, 140, 0.45);
}
.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.chatbot-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #e7eaf1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}
.chatbot-header {
    background: linear-gradient(135deg, #17246b 0%, #1e1b4b 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bot-avatar {
    width: 34px;
    height: 34px;
    background: #d61f8c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}
.chatbot-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.chatbot-header-info span {
    font-size: 11px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.chatbot-header-info span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}
.chatbot-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.chatbot-close:hover { color: white; }

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-message p { margin: 0; }
.chat-message.bot {
    align-self: flex-start;
    background: white;
    color: #2a3144;
    border-bottom-left-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}
.chat-message.user {
    align-self: flex-end;
    background: #17246b;
    color: white;
    border-bottom-right-radius: 2px;
}

.chatbot-options {
    padding: 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chatbot-options button {
    background: #f1f5f9;
    color: #17246b;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.chatbot-options button:hover {
    background: #17246b;
    color: white;
    border-color: #17246b;
}
.school-bot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.bot-school-link {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10.5px;
    color: #17246b;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
}
.bot-school-link:hover {
    background: #d61f8c;
    color: white;
    border-color: #d61f8c;
}

/* Animación de escribiendo (Chatbot) */
.chat-message.typing {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 10px;
}
.chat-message.typing .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    margin-right: 3px;
    animation: wave 1.3s linear infinite;
}
.chat-message.typing .dot:nth-child(2) { animation-delay: -1.1s; }
.chat-message.typing .dot:nth-child(3) { animation-delay: -0.9s; }
@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Diseñador de Dotaciones */
.dotaciones-layout {
    background: #f8fafc;
}
.type-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #d61f8c !important;
}
.type-card.active {
    border-color: #17246b !important;
    background: #f1f5f9 !important;
}
.color-hexagon {
    width: 44px;
    height: 48px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    border: none;
}
.color-hexagon:hover {
    transform: scale(1.15) rotate(4deg);
    filter: brightness(1.1);
}
.color-hexagon.active {
    transform: scale(1.22);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    box-shadow: 0 0 0 3px rgba(23, 36, 107, 0.4) !important;
    z-index: 10;
}

.garment-card, .manga-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.garment-card:hover, .manga-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #d61f8c !important;
}
.garment-card.active, .manga-card.active {
    border-color: #17246b !important;
    background: #f1f5f9 !important;
}

.step-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-dot.active {
    background: #17246b !important;
    border-color: #17246b !important;
    color: white !important;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(23, 36, 107, 0.3);
}

.designer-group input:focus, .designer-group textarea:focus {
    outline: none;
    border-color: #17246b !important;
    box-shadow: 0 0 0 3px rgba(23, 36, 107, 0.12);
}

@media (max-width: 900px) {
    .dotaciones-layout {
        grid-template-columns: 1fr;
    }
    .about-intro-section > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .about-mv-section > div {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .team-photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 560px) {
    .values-grid {
        grid-template-columns: 1fr !important;
    }
    .team-photo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Estilos de Botón Quitar de Carrito */
.cart-remove-btn {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 6px;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.cart-remove-btn:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px);
}

/* Estilos Premium Sobre Nosotros */
.mv-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(23, 36, 107, 0.06) !important;
    border-color: var(--navy) !important;
}
.value-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.value-card:hover {
    transform: translateY(-4px);
    background: white !important;
    border-color: var(--magenta) !important;
    box-shadow: 0 10px 25px rgba(214, 31, 140, 0.06) !important;
}
.team-photo-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
    border-color: var(--navy) !important;
}
.team-photo-card:hover .gallery-zoom-img {
    transform: scale(1.08);
}

/* Animaciones e interactividad general */
.logo-type-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-type-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-color: var(--magenta) !important;
}
.logo-type-card.active {
    border-color: var(--navy) !important;
    background: var(--soft) !important;
}
.logo-location-checkbox {
    accent-color: var(--navy);
}

/* Botón de Carrito del Menú Premium */
.cart-link {
    background: linear-gradient(135deg, #17246b 0%, #d61f8c 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(214, 31, 140, 0.3) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cart-link:hover {
    transform: scale(1.06) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(214, 31, 140, 0.45) !important;
    background: linear-gradient(135deg, #1f2f8a 0%, #e62ea2 100%) !important;
}
.cart-link svg {
    stroke: white !important;
    transition: transform 0.3s ease;
}
.cart-link:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Paleta de Colores Estilo PowerPoint */
.color-ppt-box {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.color-ppt-box:hover {
    transform: scale(1.2) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 5;
}
.color-ppt-box.active {
    border: 2px solid #17246b !important;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px white, 0 4px 12px rgba(23, 36, 107, 0.3) !important;
    z-index: 4;
}

/* Tarjetas de Telas Premium */
.fabric-card {
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.fabric-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 36, 107, 0.05);
}
.fabric-card.active {
    border-color: #17246b !important;
    background: #f8fafc !important;
    box-shadow: 0 8px 20px rgba(23, 36, 107, 0.08) !important;
}
.fabric-card::after {
    content: '✓';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #17246b;
    color: white;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.fabric-card.active::after {
    opacity: 1;
}
.fabric-card strong {
    font-size: 14px;
    color: #334155;
    transition: color 0.2s ease;
}
.fabric-card.active strong {
    color: #17246b !important;
}
.fabric-card span {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}

/* ==========================================================================
   INTERFAZ PREMIUM DE BLOG Y RESEÑAS (Fase 4)
   ========================================================================== */

.blog-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    padding: 54px 6vw;
    background: #f8fafc;
}

.post-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e7eaf1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: row; /* Horizontal layout on large screens */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(23, 36, 107, 0.05);
    border-color: var(--navy);
}

.post-image-container {
    width: 40%;
    min-width: 200px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.post-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-cover-img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.post-card-tag {
    color: var(--magenta);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.post-card-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 12px;
    line-height: 1.3;
    font-family: 'Outfit', sans-serif;
}

.post-card-body h2 a {
    transition: color 0.2s ease;
}

.post-card:hover .post-card-body h2 a {
    color: var(--magenta);
}

.post-card-body p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.post-card:hover .post-cta-btn {
    color: var(--magenta);
}

.post-cta-btn svg {
    transition: transform 0.3s ease;
}

.post-card:hover .post-cta-btn svg {
    transform: translateX(4px);
}

/* Barra Lateral de Reseñas Premium */
.reviews-aside {
    background: #ffffff;
    border: 1px solid #e7eaf1;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.reviews-aside h2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 24px;
    border-bottom: 2px solid #e7eaf1;
    padding-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.review-card-sidebar {
    background: var(--soft);
    border: 1px solid #e7eaf1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.review-card-sidebar:hover {
    transform: translateY(-2px);
    border-color: var(--magenta);
    box-shadow: 0 6px 15px rgba(214, 31, 140, 0.04);
}

.review-card-sidebar:last-child {
    margin-bottom: 0;
}

.review-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author-name {
    font-weight: 800;
    color: var(--navy);
    font-size: 14.5px;
}

.review-stars-container {
    color: #eab308;
    display: flex;
    gap: 2px;
}

.review-card-sidebar p {
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Responsividad para Blog y Reseñas */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .reviews-aside {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    .post-card {
        flex-direction: column;
    }
    .post-image-container {
        width: 100%;
        height: 200px;
    }
}



