.field-validation-error {
    color: red;
    font-size: 12px;
}

input.input-validation-error, select.input-validation-error {
    border: solid 1px red;
}

.table tr td .actions {
    display: flex;
    gap: 6px;
}

table tr td .icons {
    display: inline-flex;
    gap: 6px;
    font-size: large;
}

.table-nowrap {
    text-wrap: nowrap;
}

.image-profile-customer {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.image-profile-customer img {
    width: 100%;
}

.user-profile-table {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 6px;
}

.main-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .main-loading .spinner-border {
        color: #FFFFFF;
    }

.py-8 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* =========================================================
   Landing Page
   Brand-consistent with Login/Register (#A20000, Public Sans)
   ========================================================= */

:root {
    --landing-primary: #A20000;
    --landing-primary-hover: #cc0000;
    --landing-primary-soft: rgba(162, 0, 0, 0.08);
    --landing-primary-tint: rgba(162, 0, 0, 0.04);
    --landing-gold: #C9A961;
    --landing-dark: #1a1a1a;
    --landing-muted: #6b6b76;
    --landing-bg-alt: #faf9fb;
    --landing-border: rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

/* Navbar polish: enlace activo / hover */
.landing-navbar .nav-link {
    color: var(--landing-dark);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link:focus {
    color: var(--landing-primary);
}

/* Navbar — two-logo swap (white over dark hero, color when scrolled) */
.landing-navbar-logo {
    height: 38px;
    width: auto;
    transition: opacity 0.25s ease;
}

.landing-navbar-logo--light { display: inline-block; }
.landing-navbar-logo--dark  { display: none; }

.layout-navbar.landing-navbar-scrolled .landing-navbar-logo--light { display: none; }
.layout-navbar.landing-navbar-scrolled .landing-navbar-logo--dark  { display: inline-block; }

/* Transparent state over dark hero — make nav links + icons white */
.layout-navbar-fixed .layout-navbar:not(.landing-navbar-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.layout-navbar-fixed .layout-navbar:not(.landing-navbar-scrolled) .nav-link:hover,
.layout-navbar-fixed .layout-navbar:not(.landing-navbar-scrolled) .nav-link:focus {
    color: #ffffff;
}

.layout-navbar-fixed .layout-navbar:not(.landing-navbar-scrolled) .ti-language {
    color: rgba(255, 255, 255, 0.85);
}

.layout-navbar-fixed .layout-navbar:not(.landing-navbar-scrolled) .navbar-toggler i {
    color: rgba(255, 255, 255, 0.85);
}

/* Sticky scroll behavior — navbar turns white with shadow when scrolled */
.layout-navbar-fixed .layout-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: transparent;
    height: auto; /* override theme's fixed 3.875rem so our padding actually grows the nav */
    padding-block: 1.25rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
}

/* Inner Bootstrap .navbar adds its own padding-block: 0.5rem — neutralize so
   only our outer rule controls vertical rhythm and content can't overflow. */
.layout-navbar-fixed .layout-navbar > .container > .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.layout-navbar-fixed .layout-navbar.landing-navbar-scrolled {
    padding-block: 1rem;
}

/* Neutralize Bootstrap py-* utilities on the inner brand wrapper so the
   outer nav padding alone controls the vertical rhythm (keeps top/bottom
   visually symmetric regardless of which inner item is tallest). */
.layout-navbar-fixed .layout-navbar .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.layout-navbar-fixed .layout-navbar.landing-navbar-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.12);
    backdrop-filter: saturate(180%) blur(8px);
}

/* Push hero down so it isn't hidden under the fixed navbar */
.layout-navbar-fixed .landing-hero {
    padding-top: 8rem;
}

@media (max-width: 767.98px) {
    .layout-navbar-fixed .landing-hero {
        padding-top: 5.5rem;
    }
}

/* Eyebrow (kicker line above each section title) */
.landing-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-primary);
    padding: 0.3rem 0.75rem;
    background-color: var(--landing-primary-soft);
    border-radius: 999px;
}

/* Section spacing */
.landing-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.landing-section-alt {
    background-color: var(--landing-bg-alt);
}

.landing-section-title {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--landing-dark);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.landing-section-title--light {
    color: #ffffff;
}

.landing-section-lead--light {
    color: rgba(255, 255, 255, 0.7);
}

.landing-eyebrow--dark {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-section-lead {
    color: var(--landing-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ----- Hero (dark editorial) ----- */
.landing-hero {
    position: relative;
    padding: 7rem 0 6rem;
    background-color: #ffffff;
    overflow: hidden;
}

.landing-hero--dark {
    background-color: #0b0d12;
    color: rgba(255, 255, 255, 0.85);
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.landing-hero-grain {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 2px;
    opacity: 0.6;
}

.landing-hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
}

.landing-hero-aurora-1 {
    top: -200px;
    left: -160px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(162, 0, 0, 0.55), transparent 70%);
    opacity: 0.55;
    animation: aurora-drift 14s ease-in-out infinite;
}

.landing-hero-aurora-2 {
    bottom: -260px;
    right: -180px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(120, 0, 0, 0.45), transparent 70%);
    opacity: 0.5;
    animation: aurora-drift 18s ease-in-out infinite reverse;
}

.landing-hero-aurora-3 {
    top: 40%;
    left: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 200, 200, 0.06), transparent 65%);
}

@keyframes aurora-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* Soft fade at the bottom for a clean handoff to the next (light) section */
.landing-hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #0b0d12);
    pointer-events: none;
}

.landing-hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background-color: rgba(162, 0, 0, 0.06);
    border: 1px solid rgba(162, 0, 0, 0.15);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--landing-primary);
    letter-spacing: 0.02em;
}

.landing-hero-badge-pill--dark {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.landing-hero-badge-pill--dark .landing-hero-badge-dot {
    background-color: #ff5050;
    box-shadow: 0 0 0 4px rgba(255, 80, 80, 0.15);
}

.landing-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--landing-primary);
    box-shadow: 0 0 0 4px rgba(162, 0, 0, 0.15);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(162, 0, 0, 0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(162, 0, 0, 0.05); }
}

.landing-hero-title {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 4.8vw, 3.75rem);
    line-height: 1.05;
    color: var(--landing-dark);
    letter-spacing: -0.025em;
}

/* Editorial variant — dramatic display + serif italic rotating word */
.landing-hero-title--editorial {
    font-size: clamp(2.75rem, 6.5vw, 5.25rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.landing-hero-prefix {
    display: block;
    font-weight: 600;
}

.landing-hero-rotator {
    display: inline-block;
    font-family: 'Fraunces', 'Space Grotesk', serif;
    font-style: italic;
    font-weight: 500;
    color: #ff5050;
    background: linear-gradient(135deg, #ff5050 0%, #A20000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.landing-hero-rotator.is-out {
    opacity: 0;
    transform: translateY(-14px);
}

.landing-hero-rotator.is-in {
    opacity: 0;
    transform: translateY(14px);
}

.landing-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--landing-muted);
    max-width: 560px;
}

.landing-hero-subtitle--light {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 991.98px) {
    .landing-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hero stats */
.landing-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 540px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 20, 25, 0.08);
}

@media (max-width: 991.98px) {
    .landing-hero-stats { margin-left: auto; margin-right: auto; }
}

.landing-hero-stat-value {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--landing-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.landing-hero-stat-label {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--landing-muted);
    line-height: 1.3;
}

/* Dark variant: white numbers, light gray labels, vertical dividers between */
.landing-hero-stats--dark {
    border-top-color: rgba(255, 255, 255, 0.1);
    column-gap: 0;
}

.landing-hero-stats--dark .landing-hero-stat {
    padding-inline: 1.25rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero-stats--dark .landing-hero-stat:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.landing-hero-stats--dark .landing-hero-stat-value {
    color: #ffffff;
}

.landing-hero-stats--dark .landing-hero-stat-label {
    color: rgba(255, 255, 255, 0.55);
}

/* ----- Hero mark (right side decorative logo) ----- */
.landing-hero-mark {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-y 8s ease-in-out infinite;
}

.landing-hero-mark-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 0, 0, 0.55), transparent 70%);
    filter: blur(60px);
}

.landing-hero-mark-logo {
    position: relative;
    width: 92%;
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

/* ----- Ghost button (light/outline) for use over dark backgrounds ----- */
.btn-ghost-light {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Hero visual — abstract floating dashboard tiles (no real screenshot) */
.landing-hero-visual {
    position: relative;
    min-height: 440px;
    perspective: 1200px;
}

.landing-hero-tile {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 20, 25, 0.06);
    border-radius: 1rem;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
}

.landing-hero-tile-back {
    top: 0;
    right: 20px;
    width: 75%;
    height: 200px;
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f12 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.landing-hero-tile-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.landing-hero-tile-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.landing-hero-tile-dot--red    { background: #ff5f57; }
.landing-hero-tile-dot--yellow { background: #febc2e; }
.landing-hero-tile-dot--green  { background: #28c840; }

.landing-hero-tile-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--landing-primary), rgba(162, 0, 0, 0.3));
    margin-bottom: 0.75rem;
}

.landing-hero-tile-bar--80 { width: 80%; }
.landing-hero-tile-bar--60 { width: 60%; opacity: 0.7; }
.landing-hero-tile-bar--40 { width: 40%; opacity: 0.4; }

.landing-hero-tile-middle {
    top: 130px;
    left: 0;
    width: 70%;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float-y 6s ease-in-out infinite;
}

.landing-hero-tile-mini {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--landing-primary-soft);
    color: var(--landing-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.landing-hero-tile-text {
    flex: 1;
}

.landing-hero-tile-line {
    height: 10px;
    background: rgba(15, 20, 25, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.landing-hero-tile-line--lg { width: 100%; }
.landing-hero-tile-line--sm { width: 60%; }

.landing-hero-tile-front {
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, var(--landing-primary) 0%, #6b0000 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 20px 40px -15px rgba(162, 0, 0, 0.55);
    animation: float-y 6s ease-in-out infinite;
    animation-delay: -3s;
}

.landing-hero-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.landing-hero-tile-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.landing-hero-tile-meta strong {
    font-weight: 700;
    font-size: 0.95rem;
}

.landing-hero-tile-meta span {
    font-size: 0.75rem;
    opacity: 0.85;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ----- Process (dark "Cómo funciona") ----- */
.landing-process {
    position: relative;
    padding: 5rem 0;
    background-color: #0f1419;
    color: rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.landing-process-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-process-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(162, 0, 0, 0.4), transparent 65%);
    filter: blur(80px);
}

.landing-process-grid {
    counter-reset: step;
}

.landing-step {
    position: relative;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.landing-step:hover {
    transform: translateY(-4px);
    border-color: rgba(162, 0, 0, 0.5);
    background: rgba(162, 0, 0, 0.05);
}

.landing-step-number {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--landing-primary), rgba(162, 0, 0, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}

.landing-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.6rem;
    background: rgba(162, 0, 0, 0.12);
    color: var(--landing-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.landing-step p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ----- Mid-page CTA (call us) ----- */
.landing-callout-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.landing-callout {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, var(--landing-primary-soft) 100%);
    border: 1px solid rgba(162, 0, 0, 0.15);
    border-radius: 1.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: 0 24px 50px -28px rgba(162, 0, 0, 0.35);
    overflow: hidden;
}

.landing-callout-shape {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 0, 0, 0.18), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.landing-callout-title {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--landing-dark);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.landing-callout-body {
    color: var(--landing-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.landing-callout-phone-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-muted);
    margin-bottom: 0.25rem;
}

.landing-callout-phone-number {
    display: inline-block;
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--landing-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.landing-callout-phone-number:hover {
    color: #6b0000;
    transform: scale(1.02);
}

@media (max-width: 991.98px) {
    .landing-callout-phone {
        text-align: center;
    }
    .landing-callout-section .text-lg-end {
        margin-top: 1.5rem;
    }
}

/* ----- Portal Digital section ----- */
.landing-portal-visual {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.landing-portal-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(162, 0, 0, 0.0) 60%, rgba(162, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

.landing-portal-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
}

.landing-portal-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.landing-portal-visual:hover .landing-portal-image {
    transform: scale(1.02);
}

/* ----- Scroll reveal animation ----- */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].is-visible,
    .landing-hero-tile-middle,
    .landing-hero-tile-front,
    .landing-hero-badge-dot {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ----- Footer (override Sneat bg-body so text is readable) ----- */
.landing-footer.bg-body {
    background-color: #0f1419 !important;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-footer .footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.landing-footer .footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.landing-footer .footer-link:hover,
.landing-footer .footer-link:focus {
    color: var(--landing-primary);
    opacity: 1;
}

.landing-footer .footer-link img {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.landing-footer .footer-link:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.landing-footer-brand img {
    height: 36px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.landing-footer-brand:hover img {
    opacity: 1;
}

/* ----- Embedded contact form (in Contacto section) ----- */
.landing-contact-form-card {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 1rem;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.18);
}

.landing-contact-form-title {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--landing-dark);
    letter-spacing: -0.015em;
}

.landing-contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--landing-dark);
    margin-bottom: 0.3rem;
}

.landing-contact-form-card .form-control:focus {
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 0.2rem rgba(162, 0, 0, 0.15);
}

@media (max-width: 575.98px) {
    .landing-contact-form-card { padding: 1.5rem; }
}

/* ----- Consultation modal ----- */
.landing-consult-modal .modal-content {
    border-radius: 1rem;
    border: 0;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
}

.landing-consult-modal .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--landing-dark);
    margin-bottom: 0.3rem;
}

.landing-consult-modal .form-control:focus {
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 0.2rem rgba(162, 0, 0, 0.15);
}

.landing-consult-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.12);
    color: #28a745;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
}

/* ----- Floating WhatsApp FAB ----- */
.landing-whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1040;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.landing-whatsapp-fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
    animation: wa-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.landing-whatsapp-fab:hover,
.landing-whatsapp-fab:focus {
    transform: scale(1.08);
    background: #1da851;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
}

.landing-whatsapp-fab:active {
    transform: scale(0.96);
}

@media (max-width: 575.98px) {
    .landing-whatsapp-fab {
        bottom: 1rem;
        right: 1rem;
        width: 54px;
        height: 54px;
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-whatsapp-fab::before { animation: none; }
}

/* ----- Pillars (Nosotros) ----- */
.landing-pillar {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.18);
    border-color: var(--landing-primary-soft);
}

.landing-pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background-color: var(--landing-primary-soft);
    color: var(--landing-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* ----- Bento featured service cards ----- */
.landing-service-card--featured {
    background: linear-gradient(135deg, #ffffff 0%, var(--landing-primary-tint) 100%);
    border-color: rgba(162, 0, 0, 0.18);
    padding: 2.25rem 2rem;
    position: relative;
}

.landing-service-card--featured::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--landing-primary);
    box-shadow: 0 0 0 4px rgba(162, 0, 0, 0.15);
}

.landing-service-card--featured .landing-service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--landing-primary);
    color: #ffffff;
    font-size: 1.85rem;
    box-shadow: 0 10px 24px -10px rgba(162, 0, 0, 0.55);
}

.landing-service-card--featured h5 {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-size: 1.4rem;
    letter-spacing: -0.015em;
}

.landing-service-card--featured p {
    font-size: 1rem;
}

.landing-service-card--featured:hover {
    border-color: var(--landing-primary);
    box-shadow: 0 24px 50px -22px rgba(162, 0, 0, 0.35);
}

/* ----- Service cards ----- */
.landing-service-card {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.landing-service-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background-color: var(--landing-primary);
    transition: width 0.3s ease;
}

.landing-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.18);
    border-color: var(--landing-primary-soft);
}

.landing-service-card:hover::after {
    width: 100%;
}

.landing-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.6rem;
    background-color: var(--landing-primary-soft);
    color: var(--landing-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ----- Team cards (large marketing-style portraits) ----- */
.landing-team-card {
    background: transparent;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px -20px rgba(0, 0, 0, 0.25);
}

.landing-team-photo-wrapper {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--landing-primary) 0%, #6b0000 100%);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.25);
}

.landing-team-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    position: relative;
    z-index: 2;
}

.landing-team-photo-wrapper .landing-team-initials {
    /* Hidden by default — only appears when image fails (is-fallback class added) */
    display: none;
}

.landing-team-photo-wrapper.is-fallback {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-team-photo-wrapper.is-fallback .landing-team-initials {
    display: inline-flex;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ----- Contact ----- */
.landing-contact-info {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 0.75rem;
    padding: 2rem;
}

.landing-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--landing-border);
}

.landing-contact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.landing-contact-item:first-child {
    padding-top: 0;
}

.landing-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: var(--landing-primary-soft);
    color: var(--landing-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.landing-contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--landing-muted);
    margin-bottom: 0.25rem;
}

.landing-contact-value {
    color: var(--landing-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.landing-contact-value:hover {
    color: var(--landing-primary);
}

.landing-social-link {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background-color: var(--landing-primary-soft);
    color: var(--landing-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.landing-social-link:hover {
    background-color: var(--landing-primary);
    color: #ffffff;
}

.landing-contact-map {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.18);
}

/* ----- CTA Final ----- */
.landing-cta-final {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--landing-primary) 0%, #6b0000 100%);
    color: #ffffff;
}

.landing-cta-title {
    font-family: 'Space Grotesk', 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #ffffff;
    letter-spacing: -0.015em;
}

.landing-cta-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.landing-cta-final .btn-light {
    color: var(--landing-primary);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
}

.landing-cta-logo {
    height: 56px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

@media (max-width: 575.98px) {
    .landing-cta-logo { height: 44px; }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .landing-hero {
        padding: 3rem 0;
    }

    .landing-section {
        padding: 3.5rem 0;
    }

    .landing-cta-final {
        padding: 3rem 0;
    }
}