/* ==========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================== */
:root {
    --romi-orange: #f97316;
    --romi-dark: #1e293b;
    --romi-deep: #0f172a;
    --romi-dark-deep: #020617;
    --font-headings: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Caveat', cursive;
    --romi-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    color: var(--romi-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #fef4ec, #e0f2fe, #fff7ed, #f0f9ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

    body.splash-active {
        overflow: hidden !important;
    }

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--romi-deep);
}

/* --- BOTONES PREMIUM Y SHIMMER --- */
.btn-nav-contacto {
    background-color: var(--romi-orange);
    color: white !important;
    font-weight: 700;
    font-family: var(--font-headings);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

    .btn-nav-contacto:hover {
        background-color: #ea580c;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
    }

.btn-metallic {
    position: relative;
    overflow: hidden;
    background-color: var(--romi-orange) !important;
    color: white !important;
    border: none;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

    .btn-metallic::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -100%;
        width: 50%;
        height: 200%;
        background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        animation: lightBeam 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

@keyframes lightBeam {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.btn-metallic:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.5);
    background-color: #ea580c !important;
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    inset: 0;
    background-color: var(--romi-deep);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.splash-logo {
    width: 250px;
    opacity: 0;
    animation: premiumReveal 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes premiumReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(249,115,22,0.5));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(249,115,22,0.2));
    }
}

#main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* --- NAVBAR --- */
.navbar-romi {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.05);
    padding: 0.8rem 0;
}

/* --- HERO & TIPOGRAFÍA ESTILO ODOO --- */
.hero-section {
    padding: 170px 0 90px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.15;
    letter-spacing: -1px;
}

.marker-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

    .marker-highlight::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: -5px;
        right: -5px;
        height: 16px;
        background-color: rgba(249, 115, 22, 0.25);
        z-index: -1;
        transform: rotate(-2deg);
        border-radius: 4px;
    }

.typed-text {
    font-family: var(--font-accent);
    color: var(--romi-orange);
    font-size: 2.6em;
    font-weight: 700;
}

.typing-container {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--romi-deep);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--romi-orange);
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- SERVICIOS --- */
.services-section {
    padding: 80px 0;
}

.accordion-container {
    display: flex;
    gap: 1.5rem;
    height: 60vh;
    min-height: 500px;
}

.accordion-card {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: flex 0.7s var(--romi-transition);
}

    .accordion-card:hover {
        flex: 3;
    }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.card-content {
    min-width: 300px;
}

.card-title {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-body);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--romi-orange);
    margin-bottom: 1rem;
}

/* --- SHOWROOM BANNER --- */
.romi-showroom-cta {
    padding: 100px 20px;
    background-color: #00040a;
    background-image: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15) 0%, rgba(0, 4, 10, 1) 80%);
    display: flex;
    justify-content: center;
}

.romi-cta-glass-container {
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.romi-cta-label {
    color: #cbd5e1;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 35px;
    display: block;
}

/* --- MODALES Y FOOTER --- */
.modal-content {
    border-radius: 25px;
    border: none;
}

.modal-body {
    padding: 3rem !important;
}

.footer-romi {
    background-color: var(--romi-deep);
    color: #ffffff;
    padding: 100px 0 60px;
    text-align: center;
}

/* --- FORMULARIO DE CONTACTO --- */
.form-control {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--romi-orange);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    }

.form-label {
    font-weight: 600;
    color: var(--romi-dark);
    margin-bottom: 0.3rem;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s var(--romi-transition);
}

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 991px) {
    .accordion-container {
        flex-direction: column;
        height: auto;
    }

    .accordion-card {
        height: 350px;
    }
}
@media (max-width: 600px) {
    .typed-text {
        font-size: 1.8em; /* Ajuste automático para pantallas pequeñas */
    }
}