/*
Theme Name: Murec Theme
Theme URI: https://murec.metamaxdigital.com.do
Description: Tema hijo de GeneratePress, compatible con Elementor, Gutenberg (editor de bloques) y GeneratePress. Creado para el sitio Murec.
Author: MetaMax Digital
Author URI: https://metamaxdigital.com.do
Template: generatepress
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: murec-theme
Tags: elementor, gutenberg, generatepress, custom-colors, custom-menu, full-width-template, theme-options
*/

/* Estilos base del tema Murec */
:root {
    --murec-primary: #1a3a5c;
    --murec-accent: #e8a020;
    --murec-bg: #ffffff;
    --murec-text: #222222;
}

body {
    color: var(--murec-text);
    background-color: var(--murec-bg);
}

a {
    color: var(--murec-primary);
}

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

/* Soporte para ancho completo de Elementor/Gutenberg */
.elementor-section.elementor-section-boxed > .elementor-container,
.alignfull {
    max-width: 100%;
}

/* Evitar desbordes en movil */
img {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
}

/* Hero a ancho completo (full-bleed) */
.murec-hero-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
}

/* Estilos del menú Tailwind del header */
.murec-main-nav .menu-item a {
    color: #d1d5db;
    transition: color 0.2s;
    text-decoration: none;
}
.murec-main-nav .menu-item a:hover {
    color: #ffffff;
}
.murec-main-nav .current-menu-item a {
    color: #D99B26;
    font-weight: 600;
}
#mobile-menu .menu-item a {
    display: block;
    padding: 0.5rem 0;
    color: #d1d5db;
    text-decoration: none;
}
#mobile-menu .menu-item a:hover {
    color: #ffffff;
}

/* Header glass (transparente con blur) para que el hero suba hasta arriba */
.site-header,
.site-header .inside-header,
.main-navigation,
.main-navigation ul ul,
.main-navigation .inside-navigation {
    background: rgba(10, 17, 30, 0.75) !important;
    background-color: rgba(10, 17, 30, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.site-header .main-title a,
.site-header .main-title a:hover,
.site-header .site-description,
.site-header .main-navigation a,
.site-header .menu-toggle,
.site-header .menu-bar-items a {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #ffffff !important;
}

/* Asegurar que el hero quede detrás del menú y ocupe toda la altura */
.murec-hero {
    z-index: 1;
}

/* Hero con borde inferior diagonal */
.murec-hero {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

/* Línea divisora amarilla fina que muere en la diagonal del hero */
.murec-hero-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e8a020 0%, #e8a020 40%, transparent 100%);
    margin: 0;
    padding: 0;
    border: none;
    transform: skewY(-5deg);
    transform-origin: left;
    position: relative;
    z-index: 5;
}

/* ===== Hero a pantalla completa ===== */
.murec-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 100vh;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.murec-hero-media,
.murec-hero-media video,
.murec-hero-media .murec-hero-slideshow,
.murec-hero-media .murec-hero-slide,
.murec-hero-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.murec-hero-media video {
    object-fit: cover;
}

.murec-hero-slideshow .murec-hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.murec-hero-slideshow .murec-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.murec-hero-placeholder {
    background: linear-gradient(135deg, #1a3a5c, #0d1f33);
}

.murec-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.murec-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.murec-hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.murec-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0 0 28px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.murec-hero-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--murec-accent, #e8a020);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.murec-hero-button:hover {
    background: #cf8a10;
    color: #fff;
}

@media (max-width: 768px) {
    .murec-hero { height: 80vh; }
}