/* Marina Lui Core Styles 
 * Sigue la Guía de Estilos definidos en design_system.md
 */

:root {
    /* Paleta (Valores por defecto, sobreeescribir en tema si es necesario) */
    --color-primary: #1A1A1A;
    --color-secondary: #4A4A4A;
    --color-accent: #D4AF37;
    --color-white: #FFFFFF;

    /* Tipografía */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Aileron', sans-serif;

    --font-h1-size: 3rem;
    --font-h2-size: 2.25rem;

    /* Espaciado */
    --spacing-xl: 96px;
}

/* =========================================
   Componente: Hero Widget
   ========================================= */
.marina-hero-wrapper {
    position: relative;
    width: 100%;
    /* Altura controlada por el widget */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: #000;
    /* Fallback para video */
}

/* Video de Fondo (MP4 Directo) */
.marina-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Video contenedor (YouTube Embed) */
.marina-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    /* Crucial para YouTube BG: evita clics/pausas */
}

/* Iframe Aspect Ratio Hack */
.marina-hero-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Overlay oscuro elegante para legibilidad */
.marina-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.marina-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Permite ocupar todo el ancho disponible */
    animation: fadeUp 1s ease-out;
}

/* Grupo de Títulos (Líneas independientes) */
.marina-hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* Espacio entre las filas de texto */
    margin-bottom: 32px;
}

/* Fila de Texto (Contenedor de Segmentos) */
.marina-hero-line-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Espacio entre palabras/segmentos de la misma línea */
}

/* Segmento Individual */
.marina-hero-segment {
    /* Reiniciar herencia para que Elementor pueda aplicar sus estilos */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 2px 4px;
    transition: all 0.3s ease;
}

/* Estilo: Encuadrado (Bordered) */
.marina-hero-segment.is-bordered {
    /* Border y Background base vienen de Elementor (Global o Individual) */
    /* Mantenemos un valor default por si acaso en CSS, pero Elementor sobrescribe */
    backdrop-filter: blur(2px);
    margin: 0 4px;
}

.marina-hero-subtitle {
    /* Reiniciar herencia */
    font-family: inherit;
    margin-bottom: 48px;
    display: inline-block; /* Para permitir fondos tipo "pill" ajustar al texto */
}

/* Botón Premium */
.marina-btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.marina-btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Animaciones */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .marina-hero-title-group {
        font-size: 2rem;
    }

    .marina-hero-wrapper {
        min-height: 400px;
    }
}