:root {
    --bg-color: #073D70;
    --accent-orange: #E77013;
    --light-blue: #037aC3;
    --text-light: #E0E0E0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    background-color: var(--bg-color);
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding-top: 80px;
    /* Espacio para el navbar fijo */
}

h1,
h2,
h3,
h4,
h5,
h6,
.outfit-font {
    font-family: 'Outfit', sans-serif;
}

/* --- Estética Mac OS: Fondos Tridimensionales y Blurred Blobs --- */
.mac-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-color);
    overflow: hidden;
}

.mac-blob-1 {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(3, 122, 195, 0.3) 0%, rgba(7, 61, 112, 0) 60%);
    top: -20vh;
    left: -10vw;
    filter: blur(80px);
    mix-blend-mode: screen;
}

.mac-blob-2 {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(231, 112, 19, 0.15) 0%, rgba(7, 61, 112, 0) 60%);
    bottom: -10vh;
    right: -5vw;
    filter: blur(100px);
    mix-blend-mode: color-dodge;
}

/* --- Navegación Superior (Navbar Mac Style) --- */
.glass-navbar {
    background: rgba(7, 61, 112, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.active {
    color: var(--accent-orange);
}

.glass-navbar .dropdown-menu {
    background: rgba(7, 61, 112, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.glass-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.glass-navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Indicador de Lectura (Header Progress) */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent-orange);
    width: 0%;
    z-index: 9999;
    transform-origin: left;
}

/* Glassmorphism Refinado */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-neo {
    background-color: var(--accent-orange);
    color: white !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 112, 19, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-neo:hover {
    background-color: #f08226;
    transform: scale(1.05);
    color: white;
    box-shadow: 0 6px 20px rgba(231, 112, 19, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-neo-sm {
    padding: 8px 24px;
    font-size: 0.9rem;
}

.emphasis {
    color: white;
    text-decoration: underline;
    text-decoration-color: var(--accent-orange);
}

/* Tag AEO/GEO */
.aeo-tag {
    background: rgba(3, 122, 195, 0.15);
    border: 1px solid var(--light-blue);
    color: #8ed1fc;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

/* Marquesina Logos */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee-content img,
.marquee-content .cert-badge {
    height: 45px;
    margin: 0 50px;
    opacity: 0.4;
    filter: grayscale(100%) brightness(200%);
    transition: all 0.4s ease;
    cursor: pointer;
}

.marquee-content img:hover,
.marquee-content .cert-badge:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sticky Scroll Section */
.sticky-section {
    position: relative;
}

.scroll-phase {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 5%;
}

.phone-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 100%;
    max-width: 340px;
    height: 650px;
    border-radius: 3rem;
    border: 10px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Sticky Section de NeoMailing */

/* Estilos para las pantallas del celular */

#screen-1 {
    opacity: 1;
    /* Mostramos la primera por defecto */
}

/* Footer */
footer {
    background-color: #052a4e;
    border-top: 2px solid var(--accent-orange);
    padding: 80px 0 40px 0;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-orange);
}

/* Modal Wizard Oscuro */
.modal-content {
    background: rgba(7, 61, 112, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    display: none;
    margin-top: 5px;
}

.is-invalid {
    border-color: #ff6b6b !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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