/*
Theme Name: OnePress MARAT Child (Elementor Edition)
Theme URI: https://www.famethemes.com/themes/onepress/
Description: Tema hijo de OnePress preparado para Elementor con Header y Footer corporativos de MARAT Soluciones Industriales.
Author: MARAT
Template: onepress
Version: 2.0.0
Text Domain: onepress-marat-child
*/

:root {
    --marat-red: #8c352e;
    --marat-red-dark: #721c17;
    --marat-dark: #3b3b3b;
    --marat-black: #0d0d0d;
    --marat-gray-bg: #e8e8e8;
    --marat-white: #ffffff;
    --wp--preset--color--primary: #8c352e;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: var(--marat-white);
}

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

/* ==========================================================================
   1. CABECERA Y NAVEGACIÓN (HEADER GLOBAL PARA TODAS LAS PÁGINAS)
   ========================================================================== */
#header-section,
.site-header,
.is-transparent .site-header,
.is-transparent .site-header.no-scroll,
.site-header.header-fixed {
    background-color: rgba(10, 10, 10, 0.94) !important;
    border-bottom: none !important;
}

.marat-top-bar {
    background: #000000;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marat-top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.marat-top-contact a {
    color: #ffffff;
    font-size: 13px;
    margin-left: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.marat-top-contact a i {
    color: var(--marat-red);
    margin-right: 5px;
}

.marat-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
    width: 245px;
}

.marat-search-form input[type="search"] {
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    width: 100%;
    color: #333;
    outline: none;
    background: transparent;
}

.marat-search-form button {
    background: var(--marat-red);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
}

/* Logo Circular */
.site-branding .site-logo-div img {
    max-height: 76px;
    width: auto;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: var(--marat-red);
    padding: 2px;
}

.marat-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--marat-red);
    border: 2px solid #ffffff;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Menú Principal */
.onepress-menu > li > a {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 18px !important;
    line-height: 1 !important;
}

.onepress-menu > li > a:hover,
.onepress-menu > li.onepress-current-item > a,
.onepress-menu > li.current-menu-item > a {
    background-color: var(--marat-red) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   2. LIENZO LIMPIO PARA PÁGINAS CON ELEMENTOR
   ========================================================================== */
.marat-elementor-canvas-wrap,
.page-template-template-elementor-marat .site-content,
.page-template-template-fullwidth-stretched .site-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
}

.marat-elementor-canvas-wrap .entry-content {
    margin: 0 !important;
}

/* ==========================================================================
   3. CLASES AUXILIARES PARA WIDGETS DE ELEMENTOR (TARJETAS Y SECCIONES)
   ========================================================================== */
/* Efecto de degradado rojo sobre imagen en blanco y negro para tarjetas de servicio */
.marat-service-card-el img,
.marat-red-overlay-img img {
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.35s ease;
    display: block;
    width: 100%;
}

.marat-red-overlay-img {
    position: relative;
    overflow: hidden;
}

.marat-red-overlay-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(168, 28, 28, 0.85) 0%, rgba(168, 28, 28, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

/* Insignia circular ISO reutilizable en Elementor y Footer */
.marat-iso-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #005691;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    flex-shrink: 0;
    color: #005691;
    font-weight: 800;
    font-size: 10px;
    line-height: 1.1;
}

.marat-iso-circle small {
    font-size: 8px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   4. PIE DE PÁGINA ROJO CORPORATIVO (FOOTER GLOBAL)
   ========================================================================== */
.site-footer {
    background-color: var(--marat-red) !important;
    color: #ffffff !important;
}

.marat-custom-footer {
    padding: 40px 0;
    background-color: var(--marat-red);
    color: #ffffff;
}

.marat-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.marat-footer-brand {
    text-align: center;
    flex: 1 1 200px;
}

.marat-footer-brand p {
    font-size: 11px;
    margin-top: 10px;
    color: #f2d6d4;
}

.marat-footer-contact {
    flex: 1 1 260px;
    font-size: 13px;
}

.marat-footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.marat-footer-contact li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marat-footer-contact a {
    color: #ffffff !important;
    text-decoration: none;
}

.marat-footer-iso {
    flex: 1 1 340px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.marat-footer-iso-text {
    font-size: 11px;
    line-height: 1.4;
    color: #ffffff;
}

.site-footer .site-info {
    background-color: var(--marat-red-dark) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 0;
    font-size: 11px;
}
