/* Global styles for RMS Proyectos */
:root {
    --primary: #0077A8;
    --on-background: #1c1b1b;
    --surface: #F7F3EF;
}

body {
    background-color: #F7F3EF;
    color: #1c1b1b;
    font-family: 'Manrope', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.editorial-image {
    aspect-ratio: 4/5;
    object-fit: cover;
}

.wide-editorial-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, fr);
    gap: 24px;
}

.font-cinzel {
    font-family: 'Cinzel Decorative', cursive;
}

.reviews-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.reviews-slider-track {
    display: flex;
    transition: transform 0.5s ease-out;
    gap: 24px;
}

.review-card {
    flex: 0 0 100%;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (min-width: 1024px) {
    .review-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trustindex-badge {
    background-color: #1d7a46;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Specific section paddings to match Inicio */
.section-standard {
    padding-top: 120px;
    padding-bottom: 120px;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    .section-standard {
        padding-left: 64px;
        padding-right: 64px;
    }
}

.px-margin-mobile {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (min-width: 768px) {
    .px-margin-desktop {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }
}

.max-w-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
/* Glassmorphism Effects */
.glass-nav {
    background: rgba(28, 27, 27, 0.8) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Smooth Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.reveal-on-scroll {
    opacity: 0;
}

.reveal-on-scroll.active {
    animation: fadeInUp 0.8s ease forwards;
}

/* Premium Typography Nuances */
.text-luxury-spacing {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.font-editorial {
    font-family: 'Libre Caslon Text', serif;
    font-style: italic;
}

/* Multi-step Form Styles */
.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4c7c7;
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* Custom background overrides to match Inicio colors */
.bg-on-background {
    background-color: #1c1b1b !important;
}
.bg-on-background\/95 {
    background-color: rgba(28, 27, 27, 0.95) !important;
}

/* Fallback Typographic System */
.font-headline-lg, 
.font-headline-md, 
.font-headline-lg-mobile, 
.font-display-lg, 
.font-headline-xl {
    font-family: 'Libre Caslon Text', serif !important;
}

.font-label-sm, 
.font-body-md, 
.font-body-lg {
    font-family: 'Manrope', sans-serif !important;
}

.text-headline-lg {
    font-size: 32px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
}
.text-label-sm {
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
    font-weight: 600 !important;
}
.text-headline-md {
    font-size: 24px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}
.text-body-md {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}
.text-headline-lg-mobile {
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}
.text-display-lg-mobile {
    font-size: 40px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
}
.text-display-lg {
    font-size: 64px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    font-weight: 400 !important;
}
.text-headline-xl {
    font-size: 48px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}
.text-body-lg {
    font-size: 18px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.01em !important;
    font-weight: 400 !important;
}



/* --- Appended from Inicio --- */


        body {
            background-color: #F7F3EF;
            color: #1c1b1b;
        }

        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
        }

        /* Essential Layout Fallbacks - Refined */
        .flex {
            display: flex;
        }

        .grid {
            display: grid;
        }

        .hidden {
            display: none;
        }

        .fixed {
            position: fixed;
        }

        .absolute {
            position: absolute;
        }

        .relative {
            position: relative;
        }

        .items-center {
            align-items: center;
        }

        .justify-between {
            justify-content: space-between;
        }

        .w-full {
            width: 100%;
        }

        .z-\[100\] {
            z-index: 100;
        }

        @media (min-width: 768px) {
            .md\:flex {
                display: flex;
            }

            .md\:hidden {
                display: none;
            }
        }

        @media (min-width: 1024px) {
            .lg\:flex {
                display: flex;
            }

            .lg\:hidden {
                display: none;
            }
        }

        .editorial-image {
            aspect-ratio: 4/5;
            object-fit: cover;
        }

        .wide-editorial-image {
            aspect-ratio: 16/9;
            object-fit: cover;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 24px;
        }

        /* Parallax Core Styles */
        .parallax-container {
            overflow: hidden;
            position: relative;
            background: #e5e2e1;
        }

        .parallax-image {
            display: block;
            width: 100%;
            height: 120% !important;
            /* Reducido de 130% para mayor margen de seguridad */
            object-fit: cover;
            position: absolute;
            top: -10%;
            /* Ajustado de -15% */
            left: 0;
            will-change: transform;
            transition: transform 0.2s cubic-bezier(0.2, 0, 0.4, 1);
        }

        .parallax-wrapper {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: 0;
            padding-bottom: 62.5%;
            /* Relación de aspecto 16:10 como fallback */
            background-color: #f0f0f0;
            /* Color de carga */
        }

        @supports (aspect-ratio: 16 / 10) {
            .parallax-wrapper {
                height: auto;
                padding-bottom: 0;
                aspect-ratio: 16 / 10;
            }
        }

        /* Luxury Cursor */

        .tilt-card img {
            pointer-events: none;
        }

        .tilt-card-inner {
            transform: translateZ(20px);
        }

        /* Cinematic Text Reveal - Fixed */
        .reveal-text {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1.2s ease-out, transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
            will-change: opacity, transform;
        }

        .reveal-text.active {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1.2s ease-out, transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
            will-change: opacity, transform;
        }

        .reveal-on-scroll.active {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        .stagger-reveal span {
            display: inline-block;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
        }

        .stagger-reveal.active span {
            opacity: 1;
            transform: translateY(0);
        }

        /* Glassmorphism Navigation */
        .glass-nav {
            background: transparent;
            backdrop-filter: none;
            border-bottom: 1px solid transparent;
        }

        .glass-nav-scrolled {
            background: rgba(30, 30, 30, 0.9) !important;
            backdrop-filter: blur(20px) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        /* Mobile Menu Drawer */
        #mobile-menu-overlay {
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }

        #mobile-menu-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        #mobile-menu-panel {
            transform: translateX(100%);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        #mobile-menu-overlay.open #mobile-menu-panel {
            transform: translateX(0);
        }

        /* Logo Marquee */
        .marquee {
            display: flex;
            overflow: hidden;
            user-select: none;
            gap: 60px;
            padding: 20px 0;
            mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
        }

        .marquee-content {
            display: flex;
            flex-shrink: 0;
            gap: 60px;
            min-width: 100%;
            animation: scroll 30s linear infinite;
        }

        @keyframes scroll {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(calc(-100% - 60px));
            }
        }

        .partner-logo {
            filter: grayscale(1) brightness(0.9);
            opacity: 0.7;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            height: 45px;
            width: auto;
            max-width: 140px;
            object-fit: contain;
            padding: 0 15px;
        }

        .partner-logo:hover {
            filter: grayscale(0) brightness(1);
            opacity: 1;
            transform: scale(1.15) translateY(-5px);
        }

        .font-cinzel {
            font-family: 'Cinzel Decorative', cursive;
        }

        /* Service Area Aesthetics */
        .service-areas-bg {
            background-image: radial-gradient(var(--md-sys-color-primary-fixed-dim) 0.5px, transparent 0.5px);
            background-size: 30px 30px;
            background-position: center;
        }

        .area-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 3rem 2rem;
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 1;
        }

        .area-card:hover {
            transform: translateY(-15px) scale(1.02);
            background: #fff;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
        }

        .area-card::after {
            content: attr(data-number);
            position: absolute;
            bottom: -10px;
            right: 10px;
            font-size: 8rem;
            font-weight: 900;
            color: rgba(0, 0, 0, 0.03);
            z-index: -1;
            pointer-events: none;
        }

        .area-link {
            position: relative;
            display: flex;
            align-items: center;
            padding-left: 20px;
            transition: all 0.3s ease;
        }

        .area-link::before {
            content: '';
            position: absolute;
            left: 0;
            width: 8px;
            height: 1px;
            background: var(--md-sys-color-primary);
            transition: all 0.3s ease;
        }

        .area-link:hover {
            color: var(--md-sys-color-primary);
            padding-left: 25px;
        }

        .area-link:hover::before {
            width: 15px;
        }

        .cta-banner {
            background: #1a1a1a;
            /* Fondo oscuro sólido para asegurar contraste */
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .cta-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--md-sys-color-primary) 0%, transparent 70%);
            opacity: 0.2;
            filter: blur(60px);
        }

        .reviews-slider-container {
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .reviews-track {
            display: flex;
            transition: transform 0.5s ease-out;
            gap: 24px;
        }

        .review-card {
            flex: 0 0 100%;
            min-width: 100%;
            background: white;
            padding: 32px;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        @media (min-width: 768px) {
            .review-card {
                flex: 0 0 calc(50% - 12px);
                min-width: calc(50% - 12px);
            }
        }

        @media (min-width: 1024px) {
            .review-card {
                flex: 0 0 calc(33.333% - 16px);
                min-width: calc(33.333% - 16px);
            }
        }

        .review-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }

        .trustindex-badge {
            background-color: #1d7a46;
            color: white;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        /* Chat Bot Widget Styles */
        #rms-bot-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 1000;
        }

        #rms-bot-bubble {
            width: 70px;
            height: 70px;
            background: #162f42;
            /* Azul oscuro para contraste total */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid rgba(255, 255, 255, 0.1);
            position: relative;
        }

        #rms-bot-bubble::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--md-sys-color-primary);
            opacity: 0.5;
            z-index: -1;
            animation: botPulse 2s infinite;
        }

        @keyframes botPulse {
            0% {
                transform: scale(1);
                opacity: 0.5;
            }

            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        #rms-bot-bubble:hover {
            transform: scale(1.1);
            background: var(--md-sys-color-primary);
        }

        /* Ultra-Premium Smart Bot Styles */
        #rms-bot-window {
            position: absolute;
            bottom: 95px;
            right: 0;
            width: 350px;
            max-width: calc(100vw - 40px);
            height: 500px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(25px);
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: none;
            flex-direction: column;
            transform-origin: bottom right;
            animation: botAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255, 255, 255, 0.4);
            z-index: 2000;
        }

        .bot-header {
            background: linear-gradient(145deg, #162f42 0%, #004d6e 100%);
            padding: 20px 24px;
            color: white;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .bot-status-dot {
            width: 10px;
            height: 10px;
            background: #25D366;
            border-radius: 50%;
            display: inline-block;
            margin-right: 6px;
            box-shadow: 0 0 10px #25D366;
        }

        .bot-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: rgba(248, 249, 250, 0.3);
            display: flex;
            flex-direction: column;
            gap: 16px;
            scroll-behavior: smooth;
        }

        .message {
            max-width: 85%;
            padding: 12px 18px;
            border-radius: 18px;
            font-size: 13.5px;
            line-height: 1.6;
            position: relative;
            animation: msgSlideUp 0.4s ease-out both;
        }

        @keyframes msgSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .bot-msg {
            background: white;
            color: #1a1a1a;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.02);
        }

        .user-msg {
            background: #162f42;
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
            box-shadow: 0 10px 25px rgba(22, 47, 66, 0.15);
        }

        .bot-input-area {
            padding: 24px;
            background: white;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            gap: 14px;
            align-items: center;
        }

        .bot-input-area input {
            flex: 1;
            border: 1px solid rgba(0, 0, 0, 0.05);
            outline: none;
            font-size: 15px;
            color: #1a1a1a;
            background: #f8f9fa;
            padding: 14px 22px;
            border-radius: 30px;
            transition: all 0.3s;
        }

        .bot-input-area input:focus {
            background: white;
            border-color: #005d85;
            box-shadow: 0 0 0 4px rgba(0, 93, 133, 0.1);
        }

        .bot-options {
            padding: 0 20px 16px;
            background: white;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .bot-option-btn {
            background: rgba(0, 93, 133, 0.05);
            border: 1px solid rgba(0, 93, 133, 0.1);
            padding: 8px 14px;
            border-radius: 18px;
            font-size: 12px;
            color: #005d85;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        /* Rating System Styles */
        .rating-container {
            padding: 20px;
            text-align: center;
            background: #f8f9fa;
            border-radius: 16px;
            margin-top: 10px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            animation: fadeIn 0.5s ease-out;
        }

        .stars {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin: 12px 0;
        }

        .star {
            font-size: 28px;
            color: #ddd;
            cursor: pointer;
            transition: all 0.2s;
        }

        .star.active {
            color: #FFD700;
            transform: scale(1.1);
        }

        .star:hover {
            transform: scale(1.2);
            color: #FFD700;
        }

        /* Interactive Message Buttons */
        .msg-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
            animation: fadeIn 0.4s ease-out;
        }

        .msg-opt-btn {
            background: rgba(22, 47, 66, 0.05);
            border: 1px solid rgba(22, 47, 66, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            color: #162f42;
            cursor: pointer;
            transition: all 0.2s;
            backdrop-blur: 5px;
        }

        .msg-opt-btn:hover {
            background: #005d85;
            color: white;
            border-color: #005d85;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 93, 133, 0.2);
        }


        .typing-dots {
            display: flex;
            gap: 4px;
            padding: 8px 12px;
        }

        .dot {
            width: 6px;
            height: 6px;
            background: #ccc;
            border-radius: 50%;
            animation: dotWave 1.5s infinite ease-in-out;
        }

        .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes dotWave {

            0%,
            60%,
            100% {
                transform: translateY(0);
            }

            30% {
                transform: translateY(-4px);
            }
        }
    


.hero-gradient { background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); }


/* --- Premium Blog Aesthetics --- */
.prose p:first-of-type::first-letter {
    float: left;
    font-family: 'Libre Caslon Text', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 0.1rem;
    padding-right: 0.5rem;
    padding-left: 0.1rem;
    color: #0077A8; /* var(--primary) fallback */
    font-weight: 700;
}

.prose blockquote {
    border-left: 4px solid #0077A8;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #444748;
    background: linear-gradient(to right, rgba(0, 119, 168, 0.05), transparent);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.prose h3 {
    color: #1c1b1b;
    font-family: 'Libre Caslon Text', serif;
    letter-spacing: -0.01em;
}

