:root {
    --primary: #5D001E; /* Vinotinto Corporativo */
    --primary-dark: #3E0014;
    --primary-blue: #1e3a8a;
    --accent: #D4AF37; /* Dorado */
    --accent-light: #F1D279;
    --text: #F8F9FA;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --gradient-vinotinto: linear-gradient(135deg, #700024, #3E0014);
    --gradient-gold: linear-gradient(135deg, #D4AF37, #AA8418);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 52px; /* Solo la barra compacta superior */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* --- BARRA SUPERIOR ELEGANTE Y COMPACTA (RECUADRO ROSADO) --- */
.elegant-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #2a000d 0%, #4a0017 40%, #1e1b4b 100%);
    color: white;
    z-index: 10000;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

.elegant-header-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

/* Marca Izquierda */
.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-pill-title {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-main-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-main-name span {
    color: var(--accent);
}

/* Reloj y Fecha */
.clock-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #e2e8f0;
    white-space: nowrap;
}

.clock-label {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.68rem;
}

/* Tasas de Cambio en Vivo + PETRO */
.currency-monitor-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.currency-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.chip-icon {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: white;
}

.chip-bcv .chip-icon { background: #dc2626; }
.chip-usdt .chip-icon { background: #10b981; }
.chip-euro .chip-icon { background: #3b82f6; }
.chip-petro .chip-icon { background: #f59e0b; color: #1e1b4b; }

.chip-val {
    color: #ffffff;
    font-weight: 800;
}

/* Botones de Acción Derecha */
.header-actions-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-header-guest {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    border: 1px solid #fde68a;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-header-guest:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-1px);
}

.btn-header-login {
    background: var(--gradient-vinotinto);
    color: white;
    border: 1px solid var(--accent);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-header-login:hover {
    background: linear-gradient(135deg, #990033, #5D001E);
    transform: translateY(-1px);
}

.btn-header-dashboard {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border: 1px solid #93c5fd;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-header-admin {
    font-size: 1.15rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
    line-height: 1;
}

.btn-header-admin:hover {
    transform: rotate(20deg) scale(1.1);
}

/* HERO SECTION CON FONDO DE VIDEO DE BARCOS NAVEGANDO (IMAGEN HERO) */
.hero {
    position: relative;
    overflow: hidden;
    background: #090d16;
    color: white;
    padding: 30px 0 25px; /* Altura reducida drásticamente */
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    filter: saturate(1.15) contrast(1.05); /* Mayor nitidez y colores más vivos */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.30) 0%, rgba(15, 23, 42, 0.10) 50%, rgba(15, 23, 42, 0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.1rem; /* Más compacto */
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.85), 0 4px 16px rgba(0,0,0,0.65);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-light);
    text-shadow: 0 2px 6px rgba(0,0,0,0.85), 0 4px 16px rgba(0,0,0,0.65);
}

.hero-content p {
    font-size: 0.95rem; /* Más compacto */
    max-width: 800px;
    margin: 0 auto 18px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 2px 10px rgba(0,0,0,0.85);
    line-height: 1.5;
}

/* Contenedor de la Imagen del Laptop en Hero */
.hero-related-img-container {
    max-width: 520px; /* Reducido para que la pantalla suba */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--accent);
}

.hero-related-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.hero-related-img-container:hover img {
    transform: scale(1.02);
}

/* SERVICES SECTION (IMAGEN 2) */
.services {
    padding: 35px 0 45px; /* Más compacto */
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.title-underline {
    width: 55px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid var(--primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(93, 0, 30, 0.12);
    border-bottom-color: var(--accent);
}

.service-image {
    width: 100%;
    height: 175px; /* Proporcional a las imágenes y tarjetas */
    overflow: hidden;
    background: #0f172a;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
    padding-left: 8px;
}

.service-card p {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* FOOTER COMPACTO */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    border-top: 2px solid var(--accent);
}

/* MODAL DE AUTENTICACIÓN */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10005;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: white;
    border-radius: 14px;
    width: 100%;
    max-width: 440px;
    padding: 25px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    border: 2px solid var(--accent);
}

.close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    z-index: 10;
}

.close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.88rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(93, 0, 30, 0.12);
}

.btn-block {
    width: 100%;
    padding: 10px;
    background: var(--gradient-vinotinto);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* BOTÓN WHATSAPP */
.floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-float {
    width: 48px;
    height: 48px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
}

@media (max-width: 992px) {
    .currency-monitor-compact {
        display: none;
    }
    .hero-content h1 {
        font-size: 1.7rem;
    }
}
