/* ==========================================================================
   HOJA DE ESTILOS MAESTRA - SPARTA PHARMA · ANABOXSHOP
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #2c3e50;
    padding-bottom: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img, video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TOP BAR INDUSTRIAL */
.top-bar {
    background-color: #0b132b;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 8px 0;
}

.flex-bar {
    display: flex;
    justify-content: space-between;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* NAV DE NAVEGACIÓN */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 3px solid #10306b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b132b;
    letter-spacing: 1px;
}

.badge-granel {
    background-color: #10306b;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

.main-nav a {
    text-decoration: none;
    color: #5a738e;
    font-weight: 700;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: #10306b;
}

/* HERO SECTION INDUSTRIAL */
.hero-laboratorio {
    background-color: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #0b132b;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #5a738e;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-badges span {
    display: inline-block;
    background-color: #e5ecf4;
    color: #10306b;
    padding: 6px 15px;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.main-lab-img,
.main-lab-video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* SECCIÓN DE DIVISIONES (MENÚ VISUAL) */
.divisions-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: #0b132b;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.division-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.division-card:hover {
    transform: translateY(-5px);
}

.div-image {
    height: 200px;
    background-color: #cbd5e1;
}

.div-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.div-content {
    padding: 25px;
}

.div-content h3 {
    font-size: 1.3rem;
    color: #0b132b;
    margin-bottom: 10px;
    font-weight: 700;
}

.div-content p {
    color: #5a738e;
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 45px;
}

.btn-goto {
    display: block;
    background-color: #10306b;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-goto:hover {
    background-color: #0b132b;
}

/* FRANJA DE SELLOS DE CONFIANZA TÉCNICA */
.trust-bar {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item h4 {
    font-size: 1.1rem;
    color: #0b132b;
    margin-bottom: 8px;
    font-weight: 700;
}

.trust-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* FAQ - PREGUNTAS FRECUENTES */
.faq-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b132b;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}

.faq-arrow {
    font-size: 1.2rem;
    color: #10306b;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 200px;
    padding: 0 22px 18px;
}

.faq-answer p {
    color: #5a738e;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* CONTACTO RÁPIDO (index) */
/* CONTACTO MINI (index) */
.contacto-mini {
    padding: 20px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.contacto-mini p {
    color: #5a738e;
    font-size: 0.9rem;
}

.contacto-mini a {
    color: #10306b;
    font-weight: 600;
    text-decoration: none;
}

.contacto-mini a:hover {
    text-decoration: underline;
}

/* BOTONES DE CONTACTO (Catálogo) */
.contacto-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 650px;
    margin: 32px auto 0;
}

.btn-contacto {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    min-width: 250px;
}

.btn-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-whatsapp-cta {
    background-color: #25D366;
    color: #ffffff;
}

.btn-whatsapp-cta:hover {
    background-color: #1ebe5b;
}

.btn-email-cta {
    background-color: #10306b;
    color: #ffffff;
}

.btn-email-cta:hover {
    background-color: #0b132b;
}

.btn-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.btn-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.btn-text small {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* FAQ BANNER (index) */
.faq-banner {
    background: linear-gradient(135deg, #0b132b 0%, #10306b 100%);
    padding: 50px 0;
}

.faq-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.faq-banner-text h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.faq-banner-text p {
    color: #a0b4d0;
    font-size: 1rem;
    max-width: 500px;
}

.btn-faq-banner {
    display: inline-block;
    background-color: #ffffff;
    color: #10306b;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-faq-banner:hover {
    background-color: #e5ecf4;
    transform: translateY(-2px);
}

/* FAQ PAGE */
.faq-page {
    padding: 60px 0;
    background-color: #ffffff;
}

.faq-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-page-header h1 {
    font-size: 2.2rem;
    color: #0b132b;
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #10306b;
    font-weight: 600;
    margin-bottom: 16px;
}

.faq-intro {
    font-size: 1rem;
    color: #5a738e;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.faq-block {
    margin-bottom: 20px;
}

/* FAQ TOGGLE (Acordeón) */
.faq-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background-color 0.2s, box-shadow 0.2s, border-radius 0.2s;
}

.faq-toggle:hover {
    background-color: #f0f4ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-toggle[aria-expanded="true"] {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.faq-toggle-label {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b132b;
}

.faq-arrow {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10306b;
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
}

.faq-toggle[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg) scale(1.3);
    color: #0b132b;
}

.faq-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 8px;
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
}

.faq-toggle[aria-expanded="true"] + .faq-collapse {
    max-height: 5000px;
    opacity: 1;
    padding: 20px 22px;
    border-color: #e2e8f0;
    margin-bottom: 16px;
}

/* FAQ entries dentro del acordeón */
.faq-entry {
    margin-bottom: 20px;
    padding-left: 4px;
}

.faq-entry:last-child {
    margin-bottom: 0;
}

.faq-entry h3 {
    font-size: 1rem;
    color: #10306b;
    margin-bottom: 8px;
    font-weight: 600;
}

.faq-entry p {
    color: #4a5568;
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 6px;
}

.faq-entry ul {
    list-style: disc;
    padding-left: 22px;
    margin-top: 6px;
}

.faq-entry ul li {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.faq-entry blockquote {
    background-color: #f0f4ff;
    border-left: 4px solid #10306b;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.93rem;
    color: #0b132b;
}

/* CERTIFICACIONES */
.certificaciones {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.certificaciones h2 {
    text-align: center;
    font-size: 1.3rem;
    color: #0b132b;
    margin-bottom: 28px;
    font-weight: 700;
}

.certificados-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cert-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.cert-img {
    height: 110px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.cert-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-info {
    padding: 14px 12px;
}

.cert-info h3 {
    font-size: 0.9rem;
    color: #0b132b;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-info p {
    color: #7f8c8d;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
}

.faq-cta {
    text-align: center;
    padding: 40px 0 10px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.faq-cta p {
    font-size: 1rem;
    color: #5a738e;
    margin-bottom: 16px;
}

/* TIENDA - CATÁLOGO DE PRODUCTOS */
.tienda-page {
    padding: 60px 0;
    background-color: #ffffff;
}

.tienda-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.tienda-header h1 {
    font-size: 2.2rem;
    color: #0b132b;
    margin-bottom: 10px;
    font-weight: 700;
}

.tienda-subtitle {
    font-size: 1.1rem;
    color: #10306b;
    font-weight: 600;
    margin-bottom: 14px;
}

.tienda-intro {
    font-size: 1rem;
    color: #5a738e;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.tienda-categoria {
    margin-bottom: 48px;
}

.cat-header,
.cat-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.cat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cat-toggle:hover {
    background-color: #f0f4ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cat-header {
    border-bottom: 2px solid #10306b;
    border-radius: 0;
    padding: 0 0 16px 0;
    border: none;
    cursor: default;
    margin-bottom: 24px;
}

.cat-toggle-text {
    flex: 1;
}

.cat-toggle-text h2,
.cat-header h2 {
    font-size: 1.3rem;
    color: #0b132b;
    font-weight: 700;
    margin-bottom: 4px;
}

.cat-toggle-text p,
.cat-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.cat-arrow {
    font-size: 1.4rem;
    color: #10306b;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.cat-toggle[aria-expanded="true"] .cat-arrow {
    transform: rotate(180deg);
}

.cat-toggle[aria-expanded="true"] {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.cat-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 4px;
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.cat-toggle[aria-expanded="true"] + .cat-collapse {
    max-height: 3000px;
    opacity: 1;
    padding: 16px 4px;
    border-color: #e2e8f0;
    margin-bottom: 24px;
}

.producto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.producto-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.producto-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.producto-card.destacado {
    border-color: #10306b;
    background: #f0f4ff;
}

.producto-badge {
    display: inline-block;
    background: #10306b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.producto-card h3 {
    font-size: 1rem;
    color: #0b132b;
    font-weight: 700;
    margin-bottom: 8px;
}

.producto-desc {
    color: #5a738e;
    font-size: 0.88rem;
    line-height: 1.5;
}

.tienda-cta {
    text-align: center;
    padding: 48px 0 10px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tienda-cta p {
    font-size: 1.05rem;
    color: #5a738e;
    margin-bottom: 18px;
}

/* FOOTER */
.site-footer {
    background-color: #0b132b;
    color: #7f8c8d;
    padding: 30px 0;
    font-size: 0.85rem;
    border-top: 3px solid #10306b;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p,
.footer-contact p {
    margin-bottom: 4px;
}

.footer-contact a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-info p:last-of-type {
    font-size: 0.88rem;
}

.flag-usa {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'EmojiOne Color', sans-serif;
}

.flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.trust-icon .flag-icon {
    display: block;
    margin: 0 auto;
}

.footer-flex strong {
    color: #ffffff;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-badges { display: flex; flex-direction: column; gap: 10px; align-items: center; }
    .footer-flex { flex-direction: column; gap: 15px; text-align: center; align-items: center; }
    .flex-bar { flex-direction: column; text-align: center; gap: 5px; }
    .faq-grid { grid-template-columns: 1fr; }
    .producto-grid { grid-template-columns: 1fr; }
    .cat-header { flex-direction: column; align-items: flex-start; }
    .faq-banner-content { flex-direction: column; text-align: center; }
    .contacto-buttons { flex-direction: column; align-items: center; }
    .certificados-grid { grid-template-columns: repeat(2, 1fr); }
}