/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/


/* ============================================================
   Header responsive — logo compacto en móvil
   El tema fija #logo img { height: 100px } que en pantallas
   estrechas no deja sitio al botón hamburguesa y lo empuja
   debajo del logo. Reducimos el logo según breakpoint.
   ============================================================ */
#logo img {
    transition: height 0.25s ease;
}

@media (max-width: 991.98px) {
    #logo img {
        height: 70px !important;
    }
    #header-wrap {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    /* En móvil ocultamos el top-bar para ganar espacio vertical */
    #top-bar {
        display: none;
    }
}

@media (max-width: 575.98px) {
    #logo img {
        height: 56px !important;
    }
}

@media (max-width: 380px) {
    #logo img {
        height: 48px !important;
    }
}

/* ============================================================
   Paleta MICOM (basada en banner corporativo)
   azul marino + naranja vivo. Override de las :root del tema.
   ============================================================ */
:root {
    --micom-primary:   #1e3863;
    --micom-secondary: #1e3863;
    --micom-accent:    #fb7d4d;
    --micom-accent-2:  #e94e1b;
    --micom-bg:        #f7f8fc;
    --micom-text:      #2a2a2a;
    --micom-muted:     #6b7280;
}

/* ============================================================
   Smooth scroll para el menú one-page
   ============================================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* offset por header fijo */
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ============================================================
   Botones con gradiente naranja (estilo banner)
   Aplica a .btn-primary/.btn-danger/.btn-info (Bootstrap) y
   .button.button-3d en sus variantes (Canvas)
   ============================================================ */
.btn-primary,
.btn-info,
.btn-danger,
.button.button-3d,
.button.button-3d.button-teal,
.button.button-3d.button-red {
    background: linear-gradient(135deg, var(--micom-accent) 0%, var(--micom-accent-2) 100%) !important;
    background-color: var(--micom-accent) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(233, 78, 27, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover,
.btn-info:hover,
.btn-danger:hover,
.button.button-3d:hover,
.button.button-3d.button-teal:hover,
.button.button-3d.button-red:hover {
    background: linear-gradient(135deg, var(--micom-accent-2) 0%, var(--micom-accent) 100%) !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(233, 78, 27, 0.35);
    color: #fff !important;
}
.btn-primary:active,
.btn-danger:active,
.button.button-3d:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Utilidades de color Micom (úsalas en lugar de text-danger/text-warning) */
.text-micom-primary { color: var(--micom-primary) !important; }
.text-micom-accent  { color: var(--micom-accent-2) !important; font-weight: 700; }

/* ============================================================
   Bloque CTA (sección de contacto) — más respiración y jerarquía
   ============================================================ */
#section-buy {
    background: linear-gradient(180deg, #ffffff 0%, var(--micom-bg) 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(30, 56, 99, 0.08);
}
#section-buy .heading-block h2 {
    color: var(--micom-primary);
    font-weight: 700;
    margin-bottom: 8px;
}
#section-buy .heading-block span {
    color: var(--micom-muted);
    font-size: 1.05rem;
}
#section-buy .center {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
#section-buy .center .button {
    margin: 0 !important;
}
#section-buy .center .separador {
    color: var(--micom-muted);
    font-weight: 500;
    padding: 0 4px;
}

/* ============================================================
   Bloque video+texto (index-video-dos)
   ============================================================ */
.micom-video-cta {
    padding: 12px 0;
}
.micom-video-cta h3 {
    color: var(--micom-primary);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 12px;
}
.micom-video-cta h3 .micom-phone,
.micom-video-cta .micom-email {
    color: var(--micom-accent-2);
    font-weight: 700;
}
.micom-video-cta p,
.micom-video-cta span.lead {
    color: var(--micom-muted);
    line-height: 1.55;
    font-size: 1.02rem;
}
.micom-video-cta .badge-sur {
    display: inline-block;
    background: linear-gradient(135deg, var(--micom-accent), var(--micom-accent-2));
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Botón outline azul (para alternativas sobrias) */
.btn-outline-primary, .button.button-border {
    border: 2px solid var(--micom-primary) !important;
    color: var(--micom-primary) !important;
    background: transparent !important;
}
.btn-outline-primary:hover, .button.button-border:hover {
    background: var(--micom-primary) !important;
    color: #fff !important;
}

/* ============================================================
   Cintilla "Tenerife Sur" — añadimos badge naranja al inicio
   ============================================================ */
.micom-tenerife-bar {
    /* override del background del header.php para destacar más el banner */
    background: linear-gradient(90deg, #1e3863 0%, #4072c5 50%, #1e3863 100%) !important;
}
.micom-tenerife-bar-track span::first-letter {
    /* La montaña ⛰ al inicio: destacarla con naranja */
    color: var(--micom-accent);
    font-size: 1.2em;
}

/* ============================================================
   Patrón decorativo de fondo (curvas naranja suaves)
   Solo en bordes superior/inferior del wrapper para no recargar.
   ============================================================ */
#wrapper {
    position: relative;
    overflow: hidden;
}
#wrapper::before,
#wrapper::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 125, 77, 0.18) 0%, rgba(251, 125, 77, 0) 70%);
    pointer-events: none;
    z-index: 0;
}
#wrapper::before {
    top: -120px;
    right: -120px;
}
#wrapper::after {
    top: 38%;
    left: -180px;
    width: 420px;
    height: 420px;
}
/* El contenido por encima de los blobs */
#wrapper > * {
    position: relative;
    z-index: 1;
}
/* Asegurar que el header siga por encima */
#header, .micom-tenerife-bar, #top-bar {
    position: relative;
    z-index: 2;
}

/* ============================================================
   Reparaciones-micom: borde superior con gradiente naranja
   (sobreescribe el morado/azul anterior)
   ============================================================ */
#reparaciones-micom {
    border-image: linear-gradient(90deg, var(--micom-primary), var(--micom-accent)) 1 !important;
}

/* ============================================================
   Acentos varios — color principal del tema → azul Micom
   ============================================================ */
a:not(.btn):not(.button):not(.nav-link):not(.menu-link) {
    color: var(--micom-primary);
}
a:not(.btn):not(.button):not(.nav-link):not(.menu-link):hover {
    color: var(--micom-accent);
}
