:root {
    --ruby-green: #b7ff2a;
    --ruby-pink: #ff5db1;
    --ruby-blue: #6ed8ff;
    --ruby-black: #111111;
    --ruby-dark: #1c1c1c;
    --ruby-white: #ffffff;
    --ruby-soft: #f7fdf3;
    --ruby-gray: #666666;
    --ruby-border: #e5e5e5;
    --ruby-muted: #f5f5f5;
    --ruby-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    --ruby-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.08);
    --ruby-radius: 18px;
    --ruby-radius-lg: 24px;
    --ruby-max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ruby-black);
    background: linear-gradient(180deg, var(--ruby-soft) 0%, var(--ruby-white) 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--ruby-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
    max-width: var(--ruby-max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.logo {
    width: 130px;
    height: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--ruby-green);
    color: var(--ruby-black);
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: var(--ruby-shadow);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.25s ease;
}

.main-nav a:hover {
    background: var(--ruby-green);
    color: var(--ruby-black);
    transform: translateY(-1px);
}

/* =========================
   MAIN / FOOTER
========================= */
.main-content {
    min-height: 70vh;
    max-width: var(--ruby-max-width);
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.site-footer {
    margin-top: 40px;
    background: var(--ruby-dark);
    color: var(--ruby-white);
    border-top: 5px solid var(--ruby-pink);
}

.footer-content {
    max-width: var(--ruby-max-width);
    margin: 0 auto;
    padding: 40px 20px 25px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand p,
.footer-links a,
.footer-social a {
    color: rgba(255, 255, 255, 0.92);
}

.footer-logo {
    width: 120px;
    margin-bottom: 12px;
    background: var(--ruby-white);
    border-radius: 16px;
    padding: 8px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h3,
.footer-social h3 {
    margin: 0 0 8px;
    color: var(--ruby-green);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--ruby-blue);
}

.footer-bottom {
    text-align: center;
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

/* =========================
   HERO Y SECCIONES
========================= */
.hero {
    background: linear-gradient(
        135deg,
        rgba(183, 255, 42, 0.45),
        rgba(110, 216, 255, 0.45),
        rgba(255, 93, 177, 0.45)
    );
    color: var(--ruby-black);
    border-radius: 22px;
    padding: 30px 28px;
    box-shadow: var(--ruby-shadow-soft);
    margin-bottom: 26px;
}

.hero-compact {
    background: linear-gradient(
        135deg,
        rgba(183, 255, 42, 0.28),
        rgba(110, 216, 255, 0.28),
        rgba(255, 93, 177, 0.28)
    );
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--ruby-shadow-soft);
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.18;
}

.hero p {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 2rem;
    color: var(--ruby-black);
}

.section-text {
    margin: 0 0 20px;
    color: var(--ruby-gray);
    line-height: 1.7;
}

/* =========================
   BOTONES
========================= */
.btn {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.96rem;
}

.btn-primary {
    background: var(--ruby-black);
    color: var(--ruby-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #000000;
}

.btn-secondary {
    background: var(--ruby-white);
    color: var(--ruby-black);
    border-color: var(--ruby-black);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #f2f2f2;
}

.btn-danger {
    background: #ff5d5d;
    color: var(--ruby-white);
    border-color: #ff5d5d;
}

.btn-danger:hover {
    transform: translateY(-2px);
    background: #e34949;
    border-color: #e34949;
}

/* =========================
   GRID Y TARJETAS
========================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.card {
    background: var(--ruby-white);
    border-radius: var(--ruby-radius);
    box-shadow: var(--ruby-shadow);
    overflow: hidden;
    border: 1px solid var(--ruby-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.10);
}

.card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #f3f3f3;
    border-bottom: 1px solid var(--ruby-border);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.card-body p {
    margin: 0;
    color: var(--ruby-gray);
    line-height: 1.6;
}

.card-body .hero-actions {
    margin-top: 10px;
}

/* =========================
   GRID LIMPIO DE PRODUCTOS
========================= */
.products-grid-clean {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.product-card-clean {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card-clean .card-image,
.product-card-clean .placeholder-box {
    height: 240px;
}

.product-card-clean .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-card-clean .card-body h3 {
    font-size: 1.08rem;
    margin-bottom: 0;
    min-height: 48px;
}

.product-card-clean .card-body p {
    font-size: 0.96rem;
}

.product-card-clean .hero-actions {
    margin-top: auto;
    padding-top: 6px;
}

.product-card-clean .btn {
    width: 100%;
    text-align: center;
}

/* =========================
   BANDAS / INFO
========================= */
.info-band {
    margin: 30px 0;
    background: var(--ruby-white);
    border-left: 8px solid var(--ruby-pink);
    padding: 20px;
    border-radius: 18px;
    box-shadow: var(--ruby-shadow);
}

.placeholder-box {
    background: repeating-linear-gradient(
        45deg,
        #f9f9f9,
        #f9f9f9 12px,
        #efefef 12px,
        #efefef 24px
    );
    border: 2px dashed #cccccc;
    border-radius: 18px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--ruby-gray);
}

/* =========================
   FORMULARIOS
========================= */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"],
select,
textarea {
    font: inherit;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: var(--ruby-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ruby-blue);
    box-shadow: 0 0 0 4px rgba(110, 216, 255, 0.18);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
}

/* =========================
   OPINIONES Y PREGUNTAS
========================= */
.card form .hero-actions {
    margin-top: 18px;
}

.card form label {
    font-weight: 700;
    color: var(--ruby-black);
}

.card form p {
    color: var(--ruby-gray);
}

/* =========================
   FAQ PRO
========================= */
.faq-list-pro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

.faq-item-pro {
    background: var(--ruby-white);
    border: 1px solid var(--ruby-border);
    border-radius: 20px;
    box-shadow: var(--ruby-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.faq-toggle-pro {
    width: 100%;
    border: none;
    background: transparent;
    padding: 22px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.faq-toggle-text {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ruby-black);
    line-height: 1.5;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ruby-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--ruby-black);
    transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item-pro.active .faq-toggle-icon {
    transform: rotate(45deg);
    background: var(--ruby-green);
}

.faq-answer-pro {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.faq-answer-inner {
    padding: 0 22px 22px;
    border-top: 1px solid var(--ruby-border);
}

.faq-answer-inner p {
    margin: 18px 0 0;
    color: var(--ruby-gray);
    line-height: 1.8;
}

/* =========================
   FAQ CLIENTES RESPONDIDAS
========================= */
.faq-client-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.faq-client-card {
    background: var(--ruby-white);
    border: 1px solid var(--ruby-border);
    border-radius: 20px;
    box-shadow: var(--ruby-shadow);
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.faq-client-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.faq-client-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f3f3;
    color: var(--ruby-black);
    font-size: 0.88rem;
    font-weight: 700;
}

.faq-client-subject {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(110, 216, 255, 0.18);
    color: var(--ruby-black);
    font-size: 0.88rem;
    font-weight: 700;
}

.faq-client-question {
    margin: 0 0 10px;
    font-size: 1.14rem;
    line-height: 1.45;
    color: var(--ruby-black);
}

.faq-client-meta {
    margin: 0 0 16px;
    font-size: 0.94rem;
    color: #777777;
}

.faq-client-answer-box {
    background: linear-gradient(180deg, #fcfcfc 0%, #f7f7f7 100%);
    border: 1px solid var(--ruby-border);
    border-radius: 16px;
    padding: 16px;
}

.faq-client-answer-label {
    margin: 0 0 8px;
    color: var(--ruby-black);
}

.faq-client-answer-text {
    margin: 0;
    color: var(--ruby-gray);
    line-height: 1.75;
}

/* =========================
   CATALOGO MÁS FINO
========================= */
.card-body span {
    font-weight: 600;
}

.card-body strong {
    color: var(--ruby-black);
}

.card-body .tag,
.card-body .chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ruby-muted);
    font-size: 0.92rem;
    color: var(--ruby-black);
}

/* =========================
   UTILIDADES
========================= */
.text-center {
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
    .products-grid-clean {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid-clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-client-list {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--ruby-white);
        padding-top: 10px;
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav a {
        border: 1px solid var(--ruby-border);
        text-align: center;
    }

    .top-bar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 20px 15px 40px;
    }

    .hero {
        padding: 24px 18px;
    }

    .cards-grid,
    .products-grid-clean,
    .faq-client-list {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 105px;
    }

    .footer-logo {
        width: 100px;
    }

    .card-image,
    .product-card-clean .card-image,
    .product-card-clean .placeholder-box {
        height: 220px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .faq-toggle-pro {
        padding: 18px 16px;
    }

    .faq-answer-inner {
        padding: 0 16px 18px;
    }

    .faq-toggle-text {
        font-size: 1rem;
    }

    .faq-client-card {
        padding: 18px;
    }
}