/* ============================================================
   RindeYa — identidad visual (inspirada en rindeya.com)
   Azul índigo + amarillo/naranjo, fondo claro y aireado.
   ============================================================ */
:root {
    --ry-blue: #2e3a8c;        /* primario (RINDE / botones) */
    --ry-blue-dark: #232c6e;
    --ry-yellow: #f6a623;      /* acento (YA / subrayados) */
    --ry-coral: #e9623d;       /* CTA secundario */
    --ry-coral-dark: #d4502c;
    --ry-teal: #2fb6a3;        /* íconos de servicios */
    --ry-teal-soft: #e2f6f2;
    --ry-ink: #3a4150;         /* títulos */
    --ry-body: #6b7280;        /* texto */
    --ry-soft: #f4f7fd;        /* fondos suaves */
    --ry-soft-blue: #eaf1ff;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ry-body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ry-ink);
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -.02em;
}
a { color: var(--ry-blue); text-decoration: none; }
a:hover { color: var(--ry-blue-dark); }

/* ---------- Títulos hero / display más modernos ---------- */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -.03em;
}

/* ---------- Wordmark RINDE + YA ---------- */
.brand-word { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 800; letter-spacing: -.02em; }
.brand-rinde { color: var(--ry-blue); }
.brand-ya { color: var(--ry-yellow); }

/* ---------- Botones ---------- */
.btn-primary {
    --bs-btn-bg: var(--ry-blue);
    --bs-btn-border-color: var(--ry-blue);
    --bs-btn-hover-bg: var(--ry-blue-dark);
    --bs-btn-hover-border-color: var(--ry-blue-dark);
    --bs-btn-active-bg: var(--ry-blue-dark);
    --bs-btn-active-border-color: var(--ry-blue-dark);
    --bs-btn-disabled-bg: var(--ry-blue);
    --bs-btn-disabled-border-color: var(--ry-blue);
    border-radius: .55rem;
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--ry-blue);
    --bs-btn-border-color: var(--ry-blue);
    --bs-btn-hover-bg: var(--ry-blue);
    --bs-btn-hover-border-color: var(--ry-blue);
    --bs-btn-active-bg: var(--ry-blue);
    border-radius: .55rem;
    font-weight: 600;
}
.btn-coral {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ry-coral);
    --bs-btn-border-color: var(--ry-coral);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ry-coral-dark);
    --bs-btn-hover-border-color: var(--ry-coral-dark);
    --bs-btn-active-bg: var(--ry-coral-dark);
    color: #fff;
    border-radius: .55rem;
    font-weight: 600;
}
.btn-coral:hover { color: #fff; }

.text-primary { color: var(--ry-blue) !important; }
.text-coral { color: var(--ry-coral) !important; }
.text-teal { color: var(--ry-teal) !important; }
.text-ink { color: var(--ry-ink) !important; }
.bg-primary { background-color: var(--ry-blue) !important; }

/* Controles e indicadores del carrusel sobre fondo claro */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--ry-blue); border-radius: 50%; padding: 1.1rem; background-size: 45% 45%;
}
.carousel-indicators [data-bs-target] { background-color: var(--ry-blue); }

/* Flechas pegadas a los bordes de la pantalla, sin tapar texto ni imágenes */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next { width: auto; opacity: 1; z-index: 5; }
#heroCarousel .carousel-control-prev { left: .5rem; justify-content: flex-start; }
#heroCarousel .carousel-control-next { right: .5rem; justify-content: flex-end; }
#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon { background-color: var(--ry-blue-dark); }
@media (max-width: 991.98px) {
    #heroCarousel .carousel-control-prev, #heroCarousel .carousel-control-next { display: none; } /* en móvil estorban */
}

/* ---------- Navbar ---------- */
.navbar { backdrop-filter: saturate(180%) blur(6px); }
.navbar .nav-link { color: var(--ry-ink); font-weight: 500; position: relative; }
.navbar .nav-link:hover { color: var(--ry-blue); }
.navbar .nav-link.active { color: var(--ry-blue); }
.navbar .nav-link.active::after {
    content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 2px;
    height: 3px; border-radius: 3px; background: var(--ry-yellow);
}

/* ---------- Hero claro con blobs ---------- */
.hero {
    position: relative;
    background: radial-gradient(120% 120% at 80% -10%, var(--ry-soft-blue) 0%, #ffffff 45%);
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle at 30% 30%, var(--ry-soft-blue), transparent 70%);
}
.hero::before { width: 460px; height: 460px; top: -140px; left: -120px; opacity: .8; }
.hero::after  { width: 520px; height: 520px; top: -80px; right: -160px;
    background: radial-gradient(circle at 30% 30%, #fdeccd, transparent 70%); opacity: .7; }
.hero > .container { position: relative; z-index: 1; }
.hero .display-3, .hero .display-4, .hero .display-5 { font-weight: 800; color: var(--ry-ink); letter-spacing: -.01em; }
.hero .hero-sub { color: var(--ry-body); }

/* Encabezado de páginas internas */
.page-header {
    position: relative;
    background: radial-gradient(110% 140% at 90% -20%, var(--ry-soft-blue) 0%, #ffffff 55%);
    border-bottom: 1px solid #eef2f9;
    overflow: hidden;
}
.page-header h1 { font-weight: 800; }
.page-header .lead { color: var(--ry-body); }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section-muted { background: var(--ry-soft); }

/* ---------- Tarjetas / features ---------- */
.card-feature {
    border: 1px solid #eaeef5;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
    background: #fff;
}
.card-feature:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(46,58,140,.10); border-color: #dfe6f4; }

/* Tarjetas de módulos estilo "producto" con imagen */
.module-card {
    background: #f6f7fb; border: 1px solid #eef1f8; border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(46,58,140,.10); }
.module-chip {
    align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem;
    background: #fff; border: 1px solid #dbe3f4; color: var(--ry-blue);
    border-radius: 999px; padding: .3rem .85rem; font-size: .82rem; font-weight: 600;
}
.ver-mas { color: var(--ry-blue); font-weight: 600; text-decoration: none; }
.ver-mas:hover { color: var(--ry-blue-dark); }
.ver-mas i { transition: transform .15s ease; }
.ver-mas:hover i { transform: translateX(3px); }
.module-img img { width: 100%; object-fit: cover; }

/* Botón flotante de WhatsApp */
.whatsapp-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 1.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,.55); }
@media (max-width: 575.98px) { .whatsapp-fab { width: 52px; height: 52px; font-size: 1.7rem; right: 16px; bottom: 16px; } }

.icon-badge {
    width: 58px; height: 58px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ry-teal-soft); color: var(--ry-teal); font-size: 1.7rem;
}
.icon-badge.blue { background: var(--ry-soft-blue); color: var(--ry-blue); }
.icon-badge.coral { background: #fde7e1; color: var(--ry-coral); }

/* ---------- Planes ---------- */
.plan-card {
    border: 1px solid #eaeef5; border-radius: 1.1rem; background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(46,58,140,.10); }
.plan-card.destacado { border: 2px solid var(--ry-blue); box-shadow: 0 18px 44px rgba(46,58,140,.18); }
.plan-card .price { font-size: 2.5rem; font-weight: 800; color: var(--ry-blue); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ry-blue-dark); color: #cdd5f0; }
.footer-link { color: #c3ccec; text-decoration: none; }
.footer-link:hover { color: #fff; }
.site-footer .social a {
    width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
    transition: background .2s ease;
}
.site-footer .social a:hover { background: var(--ry-yellow); color: var(--ry-blue-dark); }

/* ---------- Badges de método API ---------- */
.method-GET { background:#dcfce7; color:#166534; }
.method-POST { background:#dbeafe; color:#1e40af; }
.method-PUT { background:#fef9c3; color:#854d0e; }
.method-DELETE { background:#fee2e2; color:#991b1b; }
.method-PATCH { background:#f3e8ff; color:#6b21a8; }
.method-badge { font-weight:700; padding:.25rem .6rem; border-radius:.4rem; font-size:.8rem; }

pre.code-block { background:#1e2547; color:#e6ebff; padding:1rem; border-radius:.6rem; overflow:auto; font-size:.85rem; }

/* ---------- Mega-menú ---------- */
.navbar .dropdown-menu { border-radius: .8rem; padding: .4rem; margin-top: .5rem; }
.navbar .dropdown-item { border-radius: .5rem; padding: .5rem .75rem; }
.navbar .dropdown-item:active { background: var(--ry-blue); }
.mega-menu {
    width: 100%; left: 0; right: 0;
    border-radius: 0 0 1.1rem 1.1rem;
    border-top: 3px solid var(--ry-blue) !important;
}
.mega-col-title {
    color: var(--ry-ink); font-weight: 700; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 1px solid #eef2f9;
}
.mega-link { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem .4rem; border-radius: .6rem; text-decoration: none; transition: background .15s ease; }
.mega-link:hover { background: var(--ry-soft); }
.mega-ico {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--ry-soft-blue); color: var(--ry-blue);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.mega-text { display: flex; flex-direction: column; line-height: 1.25; }
.mega-link-title { font-weight: 600; color: var(--ry-ink); }
.mega-link:hover .mega-link-title { color: var(--ry-blue); }
.mega-link-sub { font-size: .82rem; color: var(--ry-body); }

/* ---------- Admin ---------- */
.admin-sidebar { width: 250px; background: var(--ry-blue-dark) !important; transition: width .18s ease; overflow-x: hidden; }
.admin-sidebar .nav-link { border-radius: .55rem; color: #cdd5f0 !important; white-space: nowrap; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.08); color:#fff !important; }
.admin-sidebar .nav-link.active { background: var(--ry-blue); color: #fff !important; }

/* Menú colapsable (toggle por checkbox, sin depender de JS) */
.admin-sidebar-toggle { display: none; }
.admin-sidebar-toggle:checked ~ .admin-sidebar { width: 72px; }
.admin-sidebar-toggle:checked ~ .admin-sidebar .nav-link { font-size: 0; text-align: center; }
.admin-sidebar-toggle:checked ~ .admin-sidebar .nav-link i { font-size: 1rem; margin: 0 !important; }
.admin-sidebar-toggle:checked ~ .admin-sidebar .navbar-brand { text-align: center; }

@media (max-width: 768px) { .admin-sidebar { width: 72px; } .admin-sidebar .nav-link span, .admin-sidebar small { display:none; } }
