/* Global Styles */
:root {
    --brand-blue: #0a2342;
    --brand-blue-600: #0e2e57;
    --brand-red: #c1121f;
    --brand-red-600: #9d0e19;
    --brand-silver: #c0c7d1;
    --brand-silver-100: #f3f4f6;
    --brand-white: #ffffff;

    --primary-color: var(--brand-blue);
    --secondary-color: #6b7280;
    --success-color: #198754;
    --danger-color: var(--brand-red);
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --text-ink: #374151;
    --text-ink-soft: #4a5568;

    /* Retint Bootstrap's own palette so its utility classes (bg-primary,
       text-primary, border-primary, focus rings, links) use the brand
       colors instead of Bootstrap's default blue/red. Without this, most
       "primary" accents on the site were never actually brand colors. */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: 10, 35, 66;
    --bs-primary-text-emphasis: var(--brand-blue);
    --bs-primary-bg-subtle: #dde3ea;
    --bs-primary-border-subtle: var(--brand-silver);
    --bs-danger: var(--brand-red);
    --bs-danger-rgb: 193, 18, 31;
    --bs-link-color: var(--brand-blue);
    --bs-link-color-rgb: 10, 35, 66;
    --bs-link-hover-color: var(--brand-blue-600);
    --bs-link-hover-color-rgb: 14, 46, 87;

    /* design tokens */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.16);
    --easing-standard: cubic-bezier(.2,.8,.2,1);
    --transition-base: 180ms var(--easing-standard);
    /* Modern red glow used on product/service cards (product list, service
       list, and the home page's Productos Destacados / Servicios Express
       rails) - single source of truth for the shadow layers so every card
       that uses it stays identical. Blurred (not a crisp hard-edged ring)
       so it reads as a soft glow rather than a solid-color outline. */
    --glow-red:
        0 0 5px 1px rgba(193, 18, 31, 0.45),
        0 0 0 7px rgba(193, 18, 31, 0.12),
        0 20px 38px -12px rgba(193, 18, 31, 0.4),
        0 6px 14px rgba(16, 24, 40, 0.12);
    /* Same red glow, dialed down - sits on the card at rest so the border
       always reads as present, then blooms to --glow-red on hover/focus to
       signal "this is the thing you're interacting with". */
    --glow-red-idle:
        0 0 4px 1px rgba(193, 18, 31, 0.22),
        0 0 0 5px rgba(193, 18, 31, 0.06),
        0 12px 24px -12px rgba(193, 18, 31, 0.22),
        0 4px 10px rgba(16, 24, 40, 0.07);
    /* Blue counterpart - same idle/hover pattern, reserved for the hero and
       "Sobre Clinisoft" cards (brand-blue accent instead of red). Thicker
       ring than the red version (wider spread + blur) per design request. */
    --glow-blue:
        0 0 7px 2px rgba(10, 35, 66, 0.45),
        0 0 0 9px rgba(10, 35, 66, 0.12),
        0 22px 42px -14px rgba(10, 35, 66, 0.4),
        0 8px 16px rgba(16, 24, 40, 0.12);
    --glow-blue-idle:
        0 0 6px 2px rgba(10, 35, 66, 0.22),
        0 0 0 6px rgba(10, 35, 66, 0.06),
        0 14px 26px -14px rgba(10, 35, 66, 0.22),
        0 5px 12px rgba(16, 24, 40, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Full-bleed sections break out to 100vw via negative margins; this
       prevents the sub-pixel scrollbar-width overflow that technique can
       introduce from ever showing a horizontal scrollbar. clip (not
       hidden) on purpose - overflow-x:hidden on body forces overflow-y to
       auto per spec, which turns body into a scroll container and silently
       breaks position:sticky for every descendant (e.g. the checkout order
       summary card). clip has the same visual clipping without that side
       effect. */
    overflow-x: clip;
    /* layered background: subtle intense-blue transparent glow + base gradient */
    background:
        radial-gradient(1000px 600px at 100% -10%, rgba(14, 46, 87, 0.18), transparent 60%),
        radial-gradient(800px 500px at -10% 20%, rgba(14, 46, 87, 0.12), transparent 60%),
        linear-gradient(180deg, var(--brand-white), var(--brand-silver-100));
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Footer Brand Logos */
.footer-brand-logo {
    height: 100px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.footer-brand-logo:hover {
    transform: scale(1.05);
}

/* Footer Brands Infinite Scroll */
.footer-brands-scroll {
    overflow: hidden;
    width: 100%;
    max-height: 120px;
}

.footer-brands-wrapper {
    overflow: hidden;
    width: 100%;
}

.footer-brands-track {
    display: flex;
    gap: 30px;
    animation: footerScroll 20s linear infinite;
    width: max-content;
    align-items: center;
}

.footer-brands-track:hover {
    animation-play-state: paused;
}

@keyframes footerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

main {
    flex: 1;
    /* intense yet transparent blue backdrop for content area */
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(14,46,87,0.10), transparent 60%),
        radial-gradient(700px 450px at 0% 30%, rgba(14,46,87,0.08), transparent 60%),
        linear-gradient(180deg, rgba(14,46,87,0.06), rgba(14,46,87,0.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

/* "Sobre Nosotros" hero layout - used both as the home page's lightweight
   teaser (Módulo 3) and at the top of the dedicated About page, so it
   lives here instead of a single page's stylesheet. */
.about-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.hero-icon-wrapper {
    width: 200px;
    height: 200px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Card Styles */
.card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Product Cards */
.product-card {
    height: 100%;
    position: relative;
    /* !important: Bootstrap's .shadow-sm utility (also !important) would
       otherwise silently win here regardless of source order and hide the
       idle glow entirely - keep card markup free of .shadow-sm instead of
       relying on this, but this is the safety net. */
    box-shadow: var(--glow-red-idle) !important;
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

/* Image area of the shared product_card.html component - used on the home
   page's Productos Destacados rail and on the product list grid alike. */
.product-card .product-image-wrapper {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.product-card .product-thumb-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px;
}

.product-card .product-thumb-placeholder {
    width: 100%;
    height: 180px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-thumb-placeholder i {
    font-size: 3.5rem;
}

.product-card .product-info {
    flex: 1;
    min-width: 0;
}

/* Modern micro-interactions: image zoom + a brand-red accent bar that
   slides in on hover. .card already has overflow:hidden, so both stay
   clipped to the card's rounded corners. Covered by the site-wide
   prefers-reduced-motion rule, which disables all animations/transitions. */
.product-card img,
.product-card .card-img-top,
.product-card .product-thumb-img {
    transition: transform 0.4s var(--easing-standard);
}

.product-card:hover img,
.product-card:hover .card-img-top,
.product-card:hover .product-thumb-img {
    transform: scale(1.06);
}

.product-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--brand-red);
    transition: width 0.35s var(--easing-standard);
}

.product-card:hover::after {
    width: 100%;
}

/* Modern glow ring, always on at a low idle intensity and blooming to full
   strength on hover - a layered, translucent red halo around the whole
   card (not just the bottom edge): a crisp 1px ring, a soft wider bloom
   just outside it, a directional red glow for depth, and a faint neutral
   shadow underneath so it still reads as "lifted", not just red.
   Declared twice on purpose: .custom-card-elegant (present on some
   product/service cards alongside .product-card) sets its own !important
   box-shadow at equal specificity to a plain ".product-card" rule and is
   declared later in this file, so it would silently win on those cards
   without the second, more specific rule below - both for the idle state
   and for :hover. Same reasoning and same --glow-red token power
   .hover-glow-red just after this, the reusable version used on the home
   page's other cards (hero, reviews, about us, contact). */
.custom-card-elegant.product-card {
    box-shadow: var(--glow-red-idle) !important;
}

/* :hover for mouse, :focus-within for keyboard nav landing on the card's
   inner link (e.g. the stretched-link "Ver Detalles" button), :active for
   the moment of an actual click/tap - all three intensify the same way.
   transform + z-index make the selected card visibly pop above its
   neighbors (important in the horizontal rails, where cards sit shoulder
   to shoulder) instead of just lifting in place. */
.product-card:hover,
.product-card:focus-within,
.product-card:active {
    box-shadow: var(--glow-red) !important;
    transform: translateY(-10px) scale(1.035) !important;
    z-index: 5;
}

.custom-card-elegant.product-card:hover,
.custom-card-elegant.product-card:focus-within,
.custom-card-elegant.product-card:active {
    box-shadow: var(--glow-red) !important;
    transform: translateY(-10px) scale(1.035) !important;
    z-index: 5;
}

.hover-glow-red {
    box-shadow: var(--glow-red-idle) !important;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.custom-card-elegant.hover-glow-red {
    box-shadow: var(--glow-red-idle) !important;
}

.hover-glow-red:hover,
.hover-glow-red:focus-within,
.hover-glow-red:active {
    box-shadow: var(--glow-red) !important;
}

.custom-card-elegant.hover-glow-red:hover,
.custom-card-elegant.hover-glow-red:focus-within,
.custom-card-elegant.hover-glow-red:active {
    box-shadow: var(--glow-red) !important;
}

/* Blue counterpart of .hover-glow-red - hero and "Sobre Clinisoft" cards.
   Same idle-always-on / intensify-on-hover pattern and same reasoning for
   the .custom-card-elegant combined selectors (see comment above). */
.hover-glow-blue {
    box-shadow: var(--glow-blue-idle) !important;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.custom-card-elegant.hover-glow-blue {
    box-shadow: var(--glow-blue-idle) !important;
}

.hover-glow-blue:hover,
.hover-glow-blue:focus-within,
.hover-glow-blue:active {
    box-shadow: var(--glow-blue) !important;
}

.custom-card-elegant.hover-glow-blue:hover,
.custom-card-elegant.hover-glow-blue:focus-within,
.custom-card-elegant.hover-glow-blue:active {
    box-shadow: var(--glow-blue) !important;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Red is reserved for "Productos Destacados" on the home page - everywhere
   else (product list, service list, Servicios Express) the price stays the
   neutral brand-blue set above. */
#productos-destacados .product-price {
    color: var(--brand-red);
}

/* Card info hierarchy (product/service cards): a small "eyebrow" label
   (category for products, duration for services) so name / label / price
   / description read as four distinct pieces of information at a glance
   instead of a flat stack of similarly-weighted text. */
.card-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-blue-600);
    background: rgba(10, 35, 66, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.card-item-name {
    color: var(--text-ink);
    font-weight: 700;
}

/* Service Cards */
.service-card {
    border-left: 4px solid var(--primary-color);
}

.service-card.pending {
    border-left-color: var(--warning-color);
}

.service-card.in-progress {
    border-left-color: var(--info-color);
}

.service-card.completed {
    border-left-color: var(--success-color);
}

.service-card.cancelled {
    border-left-color: var(--danger-color);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Service status colors - was previously missing (bg-{{ status }} had no
   matching rule), so every service status badge rendered colorless. */
.status-badge.bg-pending {
    background-color: rgba(255, 193, 7, 0.16);
    color: #8a6200;
}

.status-badge.bg-confirmed {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
}

.status-badge.bg-in_progress {
    background-color: rgba(10, 35, 66, 0.12);
    color: var(--brand-blue);
}

.status-badge.bg-completed {
    background-color: rgba(25, 135, 84, 0.14);
    color: #146c43;
}

.status-badge.bg-cancelled {
    background-color: rgba(193, 18, 31, 0.12);
    color: var(--brand-red);
}

/* Estados de pedido que no comparten nombre con los de servicio (pending y
   cancelled ya están arriba y se reutilizan tal cual). */
.status-badge.bg-processing {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
}

.status-badge.bg-paid {
    background-color: rgba(25, 135, 84, 0.14);
    color: #146c43;
}

.status-badge.bg-shipped {
    background-color: rgba(10, 35, 66, 0.12);
    color: var(--brand-blue);
}

.status-badge.bg-delivered {
    background-color: rgba(15, 118, 110, 0.16);
    color: #0f766e;
}

/* Info grid - a label/value definition-list pattern for order/product
   summary panels. Replaces stacks of <p><strong>Label:</strong> value</p>
   (same visual weight for label and value, no scannable hierarchy) with a
   small uppercase caption over a larger, bolder value - the standard
   "order detail sidebar" pattern. */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.1rem 1.5rem;
}

.info-grid.info-grid-tight {
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-ink-soft);
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-ink);
    line-height: 1.4;
}

.info-value.info-value-muted {
    font-weight: 500;
    color: var(--text-ink-soft);
}

/* Gradient-fill header icon - was a duplicated 6-line inline style="" on
   14 icons across 12 templates (login, register, profile, password reset,
   checkout-adjacent forms). One class now, sized via a modifier. */
.icon-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-gradient-lg {
    font-size: 3rem;
}

.icon-gradient-md {
    font-size: 2.5rem;
}

/* Payment proof screenshot preview (order detail, client and staff view) */
.proof-thumb {
    max-height: 240px;
    object-fit: contain;
}

/* Large icon for empty states and contact cards - was a repeated
   style="font-size: 3rem" inline attribute across 11 templates. */
.icon-3rem {
    font-size: 3rem;
}

/* Dashboard KPI cards - icon + number + label, colored by what the metric
   means (not a decorative accent), used on the services/pedidos dashboard. */
.dashboard-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-ink-soft);
    margin-bottom: 0.75rem;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(10, 35, 66, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.35rem;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.kpi-icon.tone-primary { background: rgba(10, 35, 66, 0.1); color: var(--brand-blue); }
.kpi-icon.tone-warning { background: rgba(255, 193, 7, 0.18); color: #8a6200; }
.kpi-icon.tone-success { background: rgba(25, 135, 84, 0.14); color: #146c43; }
.kpi-icon.tone-info { background: rgba(13, 110, 253, 0.12); color: #0a58ca; }
.kpi-icon.tone-danger { background: rgba(193, 18, 31, 0.12); color: var(--brand-red); }

.kpi-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-ink);
    font-variant-numeric: tabular-nums;
}

.kpi-label {
    font-size: 0.82rem;
    color: var(--text-ink-soft);
    font-weight: 500;
}

/* Compact "unassigned" pill in the services table */
.pill-unassigned {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.16);
    color: #8a6200;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Small "clear active filter" link next to a table title */
.badge-soft-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-red);
    text-decoration: none;
}

.badge-soft-clear:hover {
    text-decoration: underline;
    color: var(--brand-red-600);
}

/* "How it works" step explainer - checkout, once payment_method was
   dropped in favor of manual proof-of-payment review. */
.payment-steps {
    background: var(--brand-silver-100);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.payment-steps-title {
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.payment-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.payment-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.payment-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-step-text {
    font-size: 0.92rem;
    color: var(--text-ink);
    padding-top: 2px;
}

/* Shipping carrier picker (checkout) - radio inputs styled as selectable
   cards. The input itself stays in the DOM (not display:none) so it's
   still keyboard/screen-reader operable; :has() highlights whichever
   card's radio is checked. */
.shipping-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.shipping-method-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--brand-silver);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
    background: #ffffff;
}

.shipping-method-card:hover {
    border-color: var(--brand-blue);
}

.shipping-method-card:has(input:checked) {
    border-color: var(--brand-blue);
    background: rgba(14, 46, 87, 0.05);
    box-shadow: 0 0 0 3px rgba(14, 46, 87, 0.1);
}

.shipping-method-card input[type="radio"] {
    accent-color: var(--brand-blue);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.shipping-method-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.shipping-method-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.shipping-method-name {
    font-weight: 600;
    color: var(--text-ink);
    font-size: 0.95rem;
}

.shipping-method-desc {
    font-size: 0.78rem;
    color: var(--text-ink-soft);
}

/* Forms - unified baseline so every field on the site looks intentional,
   not just the hand-styled account/product forms. Bare Bootstrap markup
   (checkout, book_service, admin CRUD forms, filter bars) inherits this
   automatically with zero template changes. */
.form-label {
    font-weight: 600;
    color: var(--text-ink);
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.form-control,
.form-select {
    border: 1.5px solid rgba(10, 35, 66, 0.16);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    color: var(--text-ink);
    background-color: #ffffff;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.form-control::placeholder {
    color: #9aa5b1;
    opacity: 1;
}

/* Focus always reads as "active", never as "error" - red is reserved for
   .is-invalid below. Every form on the site previously focused red. */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.13);
    background-color: #ffffff;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
    background-color: var(--brand-silver-100);
    color: #8a94a3;
    opacity: 1;
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--brand-red);
    background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.13);
}

.invalid-feedback,
.modern-form-error {
    color: var(--brand-red);
}

textarea.form-control {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.5;
}

/* <select> elements stuck with the old .form-control class (instead of
   Bootstrap's .form-select) still get a proper native-looking caret and
   right padding instead of rendering as a plain unstyled dropdown. */
select.form-control,
select.modern-form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230a2342' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 10px;
    padding-right: 2.4rem;
}

/* File inputs (avatar, carrusel, imágenes de producto/servicio) */
.form-control[type="file"] {
    padding: 0.45rem 0.75rem;
}

.form-control[type="file"]::file-selector-button {
    margin: -0.15rem 0.9rem -0.15rem -0.15rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: calc(var(--radius-md) - 3px);
    background: var(--brand-silver-100);
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background-color var(--transition-base);
}

.form-control[type="file"]::file-selector-button:hover {
    background: var(--brand-silver);
}

/* Checkboxes / radios everywhere, not just inside .modern-form-checkbox */
.form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
    border: 1.5px solid rgba(10, 35, 66, 0.3);
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-check-input[type="checkbox"] {
    border-radius: 0.3em;
}

.form-check-input:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.form-check-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.13);
}

.form-check-label {
    font-size: 0.92rem;
    color: var(--text-ink-soft);
}

.input-group-text {
    border: 1.5px solid rgba(10, 35, 66, 0.16);
    border-radius: var(--radius-md);
    background: var(--brand-silver-100);
    color: var(--text-ink-soft);
    font-weight: 600;
}

.form-text {
    color: var(--text-ink-soft);
    font-size: 0.82rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

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

.btn-primary:hover {
    background-color: var(--brand-blue-600);
    border-color: var(--brand-blue-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--brand-white);
}

/* Bootstrap bakes outline-button colors as literal hex in per-component
   variables, so they don't follow the --bs-primary override above. */
.btn-outline-primary {
    --bs-btn-color: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue);
    --bs-btn-hover-border-color: var(--brand-blue);
    --bs-btn-active-bg: var(--brand-blue-600);
    --bs-btn-active-border-color: var(--brand-blue-600);
    --bs-btn-disabled-color: var(--brand-blue);
    --bs-btn-disabled-border-color: var(--brand-blue);
}

.btn-accent:hover {
    background-color: var(--brand-red-600);
    border-color: var(--brand-red-600);
    color: var(--brand-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

/* Tables */
.table-responsive {
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

/* Body rows previously had zero custom styling beyond Bootstrap's
   defaults - flat borders, no brand-consistent hover state, cramped
   padding. This is what made data tables (orders, products, services)
   read as plain and hard to scan. */
.table {
    --bs-table-border-color: rgba(10, 35, 66, 0.1);
}

.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
}

.table thead th {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(10, 35, 66, 0.04);
}

/* Navbar */
.navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    min-height: 64px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-brand img {
    height: 52px;
    width: auto;
}

.nav-link {
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.6rem 0.9rem !important;
    border-radius: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.nav-link i { margin-right: 0.35rem; }

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06);
}

/* Auth links differentiator */
.nav-auth {
    border-radius: 9999px;
    padding: 0.4rem 0.9rem !important;
    font-weight: 600;
}

.nav-auth:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.35);
}

/* Login as strong CTA (light pill on dark navbar) */
.navbar.bg-primary .nav-auth-login {
    background-color: #ffffff;
    color: var(--primary-color) !important;
    border: 1px solid rgba(255,255,255,0.85);
}

.navbar.bg-primary .nav-auth-login:hover,
.navbar.bg-primary .nav-auth-login.active {
    background-color: #f8fafc;
    color: var(--brand-blue-600) !important;
}

/* Register as outlined pill */
.navbar.bg-primary .nav-auth-register {
    border: 1px solid rgba(255,255,255,0.7);
    color: #ffffff !important;
    background-color: transparent;
}

.navbar.bg-primary .nav-auth-register:hover,
.navbar.bg-primary .nav-auth-register.active {
    background-color: rgba(255,255,255,0.12);
}

/* Navbar Palette and Elevation */
.navbar.bg-primary {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--brand-red);
}

.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .navbar-toggler {
    color: var(--brand-white) !important;
}

/* keep default nav-links white, but not the auth pills */
.navbar.bg-primary .nav-link:not(.nav-auth) {
    color: var(--brand-white) !important;
}

/* final override to ensure auth login text remains dark on white pill */
.navbar.bg-primary .nav-auth-login {
    color: var(--primary-color) !important;
}

.navbar.bg-primary .nav-link.active,
.navbar.bg-primary .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.12);
}

.navbar.bg-primary .navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}

/* Hover-reveal navbar (desktop/hover devices only): keep bar visible, reveal items on hover */
@media (hover: hover) and (min-width: 992px) {
  body.is-home .nav-hover-reveal {
    opacity: 1;
    transition: box-shadow var(--transition-base);
    z-index: 1040;
    /* keep navbar fixed when on home (do not override Bootstrap .fixed-top) */
    position: fixed;
  }
  /* always show items on home (no hover-reveal) */
  body.is-home .nav-hover-reveal .navbar-brand,
  body.is-home .nav-hover-reveal .navbar-collapse .navbar-nav > li,
  body.is-home .nav-hover-reveal .navbar-collapse .navbar-nav .nav-link,
  body.is-home .nav-hover-reveal .navbar-collapse .dropdown,
  body.is-home .nav-hover-reveal .navbar-collapse .dropdown-menu,
  body.is-home .nav-hover-reveal .navbar-collapse .nav-auth {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  /* remove pseudo indicator on home */
  body.is-home .nav-hover-reveal::after {
    content: none !important;
  }
}

/* Add offset so content is not hidden behind fixed navbar on home */
body.is-home main {
    padding-top: 80px;
}

.navbar-toggler {
    padding: 0.35rem 0.6rem;
}

/* Dropdown menu in navbar */
.navbar .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
}

.navbar .dropdown-item { padding: 0.5rem 1rem; }
.navbar .dropdown-item:active { background-color: rgba(0,0,0,0.06); }

/* Footer */
footer,
footer.bg-dark {
    background-color: var(--primary-color) !important;
    color: var(--brand-white) !important;
    border-top: 3px solid var(--brand-red);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Footer Social Links */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.15rem;
    transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
    text-decoration: none !important;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Footer Navigation Links */
.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    font-size: 0.925rem;
    transition: color var(--transition-base), padding-left var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

/* Review Cards */
.review-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.review-text {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #4b5563;
    font-style: italic;
}

/* Review Section Rating Badge */
.review-rating-badge {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
    border: none;
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-base), text-underline-offset var(--transition-base);
    text-underline-offset: 2px;
}

a:hover { text-decoration: underline; }

/* Hero viewport height - min-vh-100 (100vh) is unreliable on mobile browsers,
   where the address bar hiding/showing changes the real viewport height
   mid-scroll and can make sections visually overlap. 100svh (small viewport
   height, i.e. with the browser UI accounted for) fixes that where supported. */
.hero-viewport {
    min-height: 100vh;
}

@supports (min-height: 100svh) {
    .hero-viewport {
        min-height: 100svh;
    }
}

.section-alt {
    /* silver base plus a subtle translucent dark-blue tint */
    background:
      linear-gradient(0deg, rgba(14,46,87,0.05), rgba(14,46,87,0.05)),
      var(--brand-silver-100);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
}

/* Center section and card titles site-wide */
section[aria-label] h2,
section[aria-labelledby] h2 {
    text-align: center;
}

.card .card-body > h2,
.card .card-body > h5 {
    text-align: center;
}

/* Hero */
.hero-title {
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.05rem;
}

.hero-figure {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--transition-base), filter var(--transition-base);
    will-change: transform, filter;
}

.hero-figure:hover .hero-image {
    transform: scale(1.02);
    filter: brightness(1.04) saturate(1.02);
}

.hero-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0.1) 55%, transparent 65%);
    transform: translateX(-120%);
}

.hero-figure:hover::after {
    animation: heroShine 900ms var(--easing-standard) forwards;
}

@keyframes heroShine {
    to { transform: translateX(120%); }
}

/* Minimalist brand hero (light style for company page) */
.hero-brand {
    /* light background with subtle silver gradient + translucent dark-blue tint */
    background:
      linear-gradient(0deg, rgba(14,46,87,0.04), rgba(14,46,87,0.04)),
      linear-gradient(180deg, #ffffff, var(--brand-silver-100));
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom: 2px solid var(--brand-red); /* brand accent */
    box-shadow: var(--shadow-md);
}
.hero-brand .hero-title { color: var(--brand-blue); }
.hero-brand .hero-subtitle { color: #4b5563; }
.hero-brand .btn.btn-outline-secondary {
    border-color: #cbd5e1;
    color: #374151;
}
.hero-brand .btn.btn-outline-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.hero-brand-icon {
    background: rgba(14,46,87,0.06);
    color: var(--brand-blue);
    box-shadow: inset 0 0 0 2px rgba(14,46,87,0.08);
}

/* Accent underline for headings */
.accent-underline {
    display: block;
    width: 72px;
    height: 4px;
    /* Was solid red - a two-tone bar carries both brand colors in the one
       element repeated under every section heading, instead of leaving
       red as a single thin accent while blue does everything else. */
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    border-radius: 9999px;
    margin: 0.5rem 0 1rem;
}

/* Full-bleed alternating sections (home page rhythm) - breaks a section out
   to the full viewport width regardless of the parent .container, then a
   nested .container inside restores the normal centered content width. */
.section-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.section-bleed-navy {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-600) 100%);
    color: rgba(255, 255, 255, 0.92);
}

/* Explicit white band - used so every section (not just the navy ones) owns
   a real background and sections can sit flush against each other with zero
   margin, instead of relying on the ambient body gradient peeking through. */
/* A soft tint (not pure white) so the white cards inside actually stand
   out against the section instead of blending into it. */
.section-bleed-white {
    background: var(--brand-silver-100);
}

/* Only the section's own heading/intro flips to light values on the navy
   backdrop - scoped to .section-heading rather than every .text-primary /
   .text-muted, so nested white cards (prices, descriptions, review dates)
   keep their normal dark text and stay legible on their own white background. */
.section-bleed-navy .section-heading,
.section-bleed-navy .section-heading i {
    color: #ffffff !important;
}

.section-bleed-navy .section-heading .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Outline buttons that sit directly on the navy canvas (not inside a white
   card) need a light variant to stay visible. */
.section-bleed-navy .btn-outline-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-hover-color: var(--brand-blue);
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: #ffffff;
    --bs-btn-active-color: var(--brand-blue);
}

/* Silver panel for media containers */
.bg-silver-panel {
    background:
      linear-gradient(0deg, rgba(14,46,87,0.03), rgba(14,46,87,0.03)),
      #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
}

/* Reusable tinted panel utility (optional) */
.panel-tinted-blue {
    background:
      linear-gradient(0deg, rgba(14,46,87,0.05), rgba(14,46,87,0.05)),
      #ffffff;
    border: 1px solid #e5e7eb;
}

/* Contact section refinements */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
}
.contact-list li:hover {
    background: rgba(14,46,87,0.06);
}

/* Contact tile - clickable row (icon + label/value) used by the home page
   contact card, styled like the .feature-item rows for a consistent feel. */
.contact-tile {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    color: inherit;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-tile:hover {
    background: rgba(14, 46, 87, 0.06);
    transform: translateX(4px);
}

.contact-tile:hover .text-ink {
    color: var(--brand-blue) !important;
}
.icon-circle-blue {
    width: 34px; height: 34px; border-radius: 9999px;
    display: grid; place-items: center;
    color: var(--brand-blue);
    background: rgba(14,46,87,0.1);
    box-shadow: inset 0 0 0 2px rgba(14,46,87,0.08);
}

/* Red counterpart - these icon circles were always blue regardless of
   what the icon meant, so a list of 3-4 of them read as one flat blue
   block instead of a balanced use of both brand colors. */
.icon-circle-red {
    width: 34px; height: 34px; border-radius: 9999px;
    display: grid; place-items: center;
    color: var(--brand-red);
    background: rgba(193,18,31,0.1);
    box-shadow: inset 0 0 0 2px rgba(193,18,31,0.08);
}

/* about_us_card.html's feature rows (used with .icon-circle-red/-blue
   above) and its photo carousel - shared between the home page and the
   dedicated /nosotros/ page, so this lives here rather than a single
   page's stylesheet. .feature-grid-panel gives the row its own soft red
   panel so it reads as a distinct block instead of blending into the
   card's white background, contrasting with the red/blue icon circles. */
.feature-grid-panel {
    background: rgba(193, 18, 31, 0.05);
    border: 1px solid rgba(193, 18, 31, 0.12);
    border-radius: var(--radius-lg);
    padding: 16px 16px 4px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(193, 18, 31, 0.15);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: transparent;
    transform: translateX(6px);
    border-bottom-color: var(--brand-blue);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--brand-blue);
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--secondary-color, #495057);
}

.about-carousel-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.carousel-img.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 6s linear;
}

/* Auto-adjusting grid for "includes" checklists (or any icon+text list) -
   the number of columns follows how many items there are and the space
   available, instead of a fixed column count. */
.includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Feature cards */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.feature-card h5 {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.feature-card p {
    color: #4b5563; /* slightly stronger than .text-muted for readability */
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.feature-card .stretched-link {
    position: relative;
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size var(--transition-base), color var(--transition-base);
}

.feature-card .stretched-link:hover {
    background-size: 100% 2px;
}

.feature-card .d-flex i {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(13, 110, 253, 0.1); /* soft primary tint */
    box-shadow: inset 0 0 0 2px rgba(13,110,253,0.08);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    .navbar-brand img { height: 32px; }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.hover-lift { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hover-glow:hover { box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.25), var(--shadow-sm); }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-up { animation: revealUp 850ms var(--easing-standard) both; }

/* Scroll-triggered reveal (animación más lenta y relajada) */
.scroll-reveal { opacity: 0; }
.scroll-reveal.active { animation: revealUp 2500ms var(--easing-standard) both; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Sidebar */
.app-sidebar {
    background: var(--brand-white);
}

.app-sidebar-nav .app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-sidebar-nav .app-sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

.app-sidebar-nav .app-sidebar-link:hover {
    background-color: var(--brand-silver-100);
    color: var(--brand-blue-600);
}

.app-sidebar-nav .app-sidebar-link.active {
    background: linear-gradient(90deg, rgba(193, 18, 31, 0.08), rgba(255,255,255,0));
    border-left-color: var(--brand-red);
    color: var(--brand-blue-600);
    font-weight: 600;
}

.app-sidebar-nav .app-sidebar-link:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(193, 18, 31, 0.4);
}

/* Offcanvas (dark) sidebar overrides */
.offcanvas.text-bg-dark .app-sidebar-link {
    color: #e5e7eb;
}

.offcanvas.text-bg-dark .app-sidebar-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
}

.offcanvas.text-bg-dark .app-sidebar-link.active {
    border-left-color: var(--brand-red);
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* Elegant Custom Card (UX/UI Refinement) */
.custom-card-elegant {
    /* Elevated card family: visibly more present than the plain .card
       baseline at rest (previously it was the opposite - a near-invisible
       0.08 alpha border and 0.03 alpha shadow that all but vanished
       against the page's own near-white background). Layered shadow
       (tight contact shadow + soft ambient one) reads as "lifted" without
       needing a heavy fill color. */
    border: 1px solid rgba(10, 35, 66, 0.14) !important;
    border-radius: 1.25rem !important; /* 20px */
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 20px rgba(16, 24, 40, 0.08) !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden;
    background-color: #ffffff;
}

.custom-card-elegant:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(10, 35, 66, 0.2) !important;
    box-shadow: 0 4px 8px rgba(10, 35, 66, 0.08), 0 20px 36px rgba(10, 35, 66, 0.16) !important;
}

.custom-card-elegant .card-title {
    font-weight: 600 !important;
    color: var(--text-ink) !important;
}

.custom-card-elegant .card-text,
.custom-card-elegant .text-muted {
    color: var(--text-ink-soft) !important; /* Gris profundo para lectura relajada */
}

/* Text tone utilities - reused by admin tables/modals outside .custom-card-elegant
   so they don't need to hardcode the same gray inline. */
.text-ink {
    color: var(--text-ink) !important;
}

.text-ink-soft {
    color: var(--text-ink-soft) !important;
}

/* Iconography optimization */
.custom-card-elegant i.bi {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.custom-card-elegant:hover i.bi {
    opacity: 0.9;
}

/* Entry Animation (fade-in-up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0; /* Starts hidden before animation kicks in */
}

/* Staggered entrance for sibling .fade-in-up cards - was a repeated
   style="animation-delay: 0.1s" / "0.2s" inline attribute in 6 templates. */
.fade-in-up-1 {
    animation-delay: 0.1s;
}

.fade-in-up-2 {
    animation-delay: 0.2s;
}

/* Micro-interacciones en los Círculos de ¿Cómo funciona? */
.how-it-works-circle {
    transition: transform 0.3s ease;
}
.how-it-works-circle:hover {
    transform: scale(1.1);
}

/* E-commerce specific styles */
.product-thumb-img {
    max-width: 60px;
    height: 60px;
    object-fit: cover;
}

.product-thumb-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
}

.checkout-summary-sticky {
    position: sticky;
    top: 100px;
}

@media (max-width: 767px) {
    .checkout-summary-sticky {
        position: static;
    }
}

/* Framed, non-cropping image box - a padded light panel with a visible
   border so a product photo reads as a deliberate container instead of a
   bare <img> bleeding into the page. Used on the product detail page's
   main photo + gallery thumbnails, and on cart line items. Distinct from
   .product-thumb-img/.product-image-wrapper above (those are specific to
   .product-card and the admin product table). */
.framed-image-box {
    background-color: #f8f9fa;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.framed-image-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.framed-image-box .bi {
    font-size: 3.5rem;
    color: #adb5bd;
}

.framed-image-box-lg {
    padding: 1.5rem;
    min-height: 360px;
}

.framed-image-box-thumb {
    aspect-ratio: 1 / 1;
    padding: 0.4rem;
}

.framed-image-box-cart {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    padding: 0.5rem;
}

.framed-image-box-cart .bi,
.framed-image-box-thumb .bi {
    font-size: 1.75rem;
}

.cart-empty-icon {
    font-size: 5rem;
}

.images-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.image-card-wrapper {
    min-width: 200px;
    max-width: 200px;
}

.image-card-container {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(10, 35, 66, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.6);
    color: white;
}

.floating-cart-btn:active {
    transform: translateY(-1px);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-red);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .floating-cart-btn .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}

/* Modern Form Styles - the "conversion surface" treatment for account,
   checkout, booking and admin-CRUD forms. Shares radius language with
   .custom-card-elegant (1.25rem) so every large card on the site, form
   or not, reads as one family. */
.modern-form-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg), 0 2px 8px rgba(10, 35, 66, 0.06);
    background: #ffffff;
    overflow: hidden;
}

.modern-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
}

.modern-form-header {
    text-align: center;
    padding: 2.25rem 2rem 1rem;
}

.modern-form-header h2 {
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.modern-form-header p {
    color: var(--text-ink-soft);
    font-size: 0.95rem;
}

.modern-form-body {
    padding: 0 2rem 2rem;
}

@media (max-width: 576px) {
    .modern-form-header { padding: 1.75rem 1.25rem 1rem; }
    .modern-form-body { padding: 0 1.25rem 1.75rem; }
}

.modern-form-group {
    margin-bottom: 1.35rem;
    position: relative;
}

.modern-form-group label {
    display: inline-block;
    font-weight: 600;
    color: var(--text-ink);
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.modern-form-control {
    border: 1.5px solid rgba(10, 35, 66, 0.16);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
    background-color: var(--brand-silver-100);
}

.modern-form-control:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.13);
    background-color: #ffffff;
}

.modern-form-control::placeholder {
    color: #9aa5b1;
}

.modern-form-btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-600) 100%);
    color: white;
}

.modern-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 35, 66, 0.3);
    color: white;
}

.modern-form-btn:active {
    transform: translateY(0);
}

/* Google's own brand guidelines call for a neutral (not full-color)
   button: white background, gray border, dark text - distinct from the
   site's own gradient CTA so it visually reads as "sign in with a
   third-party account" rather than the primary action. */
.modern-form-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--brand-silver);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #ffffff;
    color: var(--text-ink);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.modern-form-btn-google i {
    font-size: 1.1rem;
    color: #4285f4;
}

.modern-form-btn-google:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--brand-silver-100);
    color: var(--text-ink);
}

.modern-form-btn-google:active {
    transform: translateY(0);
}

.modern-form-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.modern-form-link:hover {
    color: var(--brand-red);
}

.modern-form-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-ink-soft);
}

.modern-form-divider::before,
.modern-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--brand-silver);
}

.modern-form-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.modern-form-icon {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    color: #9aa5b1;
    pointer-events: none;
    transition: color var(--transition-base);
}

.modern-form-control:focus + .modern-form-icon {
    color: var(--brand-blue);
}

.modern-form-error {
    color: var(--brand-red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modern-form-success {
    color: var(--success-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modern-form-help {
    color: var(--text-ink-soft);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.modern-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-form-checkbox input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.3rem;
    border: 1.5px solid rgba(10, 35, 66, 0.3);
    cursor: pointer;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.modern-form-checkbox input[type="checkbox"]:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.modern-form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-ink-soft);
    cursor: pointer;
}

/* Form animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-form-card {
    animation: slideInUp 0.5s ease-out;
}

.modern-form-section-title {
    color: var(--brand-blue);
    font-weight: 700;
}

/* Blue variant for the shopping/booking flow forms (checkout, agendar
   servicio) - a navy card with crisp white inputs, instead of the default
   white card with light-gray inputs. White-on-navy inputs read with much
   stronger contrast than gray-on-white ever did, and it visually ties
   these forms to the site's own navy sections. Applied as a modifier
   class (not baked into .modern-form-card) so login/register/profile and
   the admin CRUD forms that share the same base system stay untouched. */
.modern-form-card-blue {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-600) 100%);
}

.modern-form-card-blue::before {
    background: var(--brand-red);
}

.modern-form-card-blue .modern-form-header h2,
.modern-form-card-blue .modern-form-section-title {
    color: #ffffff;
}

.modern-form-card-blue .modern-form-header p {
    color: rgba(255, 255, 255, 0.75);
}

.modern-form-card-blue .modern-form-group label {
    color: rgba(255, 255, 255, 0.94);
}

.modern-form-card-blue .modern-form-control {
    background-color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--text-ink);
}

.modern-form-card-blue .modern-form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.28);
}

.modern-form-card-blue .modern-form-control::placeholder {
    color: #9aa5b1;
}

.modern-form-card-blue .modern-form-help {
    color: rgba(255, 255, 255, 0.68);
}

.modern-form-card-blue .modern-form-icon {
    color: #9aa5b1;
}

.modern-form-card-blue .modern-form-control:focus + .modern-form-icon {
    color: var(--brand-red);
}

.modern-form-card-blue .modern-form-checkbox input[type="checkbox"] {
    background-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.modern-form-card-blue .modern-form-checkbox label {
    color: rgba(255, 255, 255, 0.85);
}

/* Primary CTA flips to red so it stands out against the now-blue card
   instead of nearly disappearing (blue button on a blue card). */
.modern-form-card-blue .modern-form-btn {
    background: var(--brand-red);
}

.modern-form-card-blue .modern-form-btn:hover {
    box-shadow: 0 10px 24px rgba(193, 18, 31, 0.35);
}

.modern-form-card-blue .btn-outline-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.5);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.15);
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
}

/* Social login buttons */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #495057;
}

.social-login-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #f8f9fa;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
}

.password-strength-weak {
    width: 33%;
    background: var(--danger-color);
}

.password-strength-medium {
    width: 66%;
    background: var(--warning-color);
}

.password-strength-strong {
    width: 100%;
    background: var(--success-color);
}
