/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

/* ==========================================
   ALMENDRAL IMPRESORES - DISENO CORPORATIVO
   ========================================== */

:root {
    --alm-magenta: #E5007D;
    --alm-cyan: #00A9CE;
    --alm-yellow: #F5CD21;
    --alm-dark: #33363B;
    --alm-light: #F6F7F9;
}

/* Cabecera */
body.almendral-home #header {
    background: #ffffff;
    border-bottom: 3px solid var(--alm-magenta);
}

/* Contenedor principal */
body.almendral-home #body-wrapper {
    background: #ffffff;
}

/* Titulo principal */
body.almendral-home h1 {
    color: var(--alm-dark);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    max-width: 950px;
    margin: 2rem auto 1.5rem;
}

/* Subtitulo */
body.almendral-home h1 + h3 {
    color: var(--alm-magenta);
    font-size: clamp(1.15rem, 2.3vw, 1.6rem);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Titulos de secciones */
body.almendral-home h2 {
    color: var(--alm-dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-top: 3.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 4px solid var(--alm-cyan);
}

/* Servicios */
body.almendral-home h3 {
    color: var(--alm-magenta);
}

/* Enlaces */
body.almendral-home #body-wrapper a {
    color: var(--alm-magenta);
    font-weight: 600;
}

body.almendral-home #body-wrapper a:hover {
    color: var(--alm-dark);
}

/* Separadores */
body.almendral-home hr {
    border: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--alm-cyan) 0%,
        var(--alm-cyan) 25%,
        var(--alm-magenta) 25%,
        var(--alm-magenta) 50%,
        var(--alm-yellow) 50%,
        var(--alm-yellow) 75%,
        var(--alm-dark) 75%,
        var(--alm-dark) 100%
    );
    margin: 3rem 0;
}

/* Adaptacion movil */
@media (max-width: 768px) {
    body.almendral-home h1 {
        font-size: 2.3rem;
        margin-top: 1.5rem;
    }

    body.almendral-home h2 {
        margin-top: 2.5rem;
    }
}

/* ==========================================
   TARJETAS DE SERVICIOS
   ========================================== */

body.almendral-home .alm-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

body.almendral-home .alm-service {
    background: #F6F7F9;
    border-radius: 14px;
    padding: 2rem;
    border-top: 6px solid var(--alm-magenta);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.almendral-home .alm-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

body.almendral-home .alm-service-offset {
    border-top-color: var(--alm-cyan);
}

body.almendral-home .alm-service-digital {
    border-top-color: var(--alm-magenta);
}

body.almendral-home .alm-service-finishing {
    border-top-color: var(--alm-yellow);
}

body.almendral-home .alm-service h3 {
    margin-top: 0;
    color: var(--alm-dark);
    font-size: 1.35rem;
}

body.almendral-home .alm-service p {
    color: #555B63;
    line-height: 1.7;
}

body.almendral-home .alm-service a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--alm-magenta);
    font-weight: 700;
}

@media (max-width: 900px) {
    body.almendral-home .alm-services {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   HERO CORPORATIVO ALMENDRAL
   ========================================== */

body.almendral-home .alm-hero {
    background: #30343B;
    color: #ffffff;
    border-radius: 18px;
    padding: clamp(2rem, 5vw, 5rem);
    margin: 1.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    border-top: 7px solid var(--alm-magenta);
}

body.almendral-home .alm-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

body.almendral-home .alm-hero h1 {
    color: #ffffff;
    margin: 0 0 1.5rem;
    max-width: none;
}

body.almendral-home .alm-hero h3 {
    color: #F5CD21;
    margin-bottom: 1.5rem;
}

body.almendral-home .alm-hero p {
    color: #E3E5E9;
    line-height: 1.8;
}

body.almendral-home .alm-hero a {
    display: inline-block;
    background: var(--alm-magenta);
    color: #ffffff !important;
    padding: 0.9rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.almendral-home .alm-hero a:hover {
    background: #B90065;
    color: #ffffff !important;
    transform: translateY(-2px);
}

body.almendral-home .alm-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -150px;
    border: 60px solid rgba(0, 169, 206, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.almendral-home .alm-hero {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.almendral-home .alm-hero a {
        transition: none;
    }
}

/* ==========================================
   AJUSTES VISUALES DE LEGIBILIDAD
   ========================================== */

/* Titulo principal */
body.almendral-home .alm-hero h1 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Subtitulo */
body.almendral-home .alm-hero h3 {
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Titulos y textos de tarjetas */
body.almendral-home .alm-service h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

body.almendral-home .alm-service p {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Ajustes en pantallas pequeñas */
@media (max-width: 768px) {
    body.almendral-home .alm-hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

/* ==========================================
   HERO COMPACTO - NOTEBOOKS Y TABLETS
   ========================================== */

body.almendral-home .alm-hero {
    padding: 2.5rem 3rem;
    margin: 1rem 0 2rem;
    min-height: 0;
}

body.almendral-home .alm-hero-content {
    max-width: 900px;
}

/* Titulo reducido aproximadamente 2 puntos */
body.almendral-home .alm-hero h1 {
    font-size: clamp(1.75rem, 2.5vw, 3.05rem);
    line-height: 1.12;
    margin-bottom: 0.8rem;
}

/* Subtitulo mas compacto */
body.almendral-home .alm-hero h3 {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.35;
    margin-bottom: 0.8rem;
}

/* Texto descriptivo */
body.almendral-home .alm-hero p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.7rem;
}

/* Boton de cotizacion */
body.almendral-home .alm-hero a {
    padding: 0.7rem 1.3rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Notebooks y tablets */
@media (max-width: 1024px) {
    body.almendral-home .alm-hero {
        padding: 2rem;
    }

    body.almendral-home .alm-hero h1 {
        font-size: clamp(1.75rem, 3vw, 2.5rem);
    }
}

/* Telefonos */
@media (max-width: 600px) {
    body.almendral-home .alm-hero {
        padding: 1.5rem;
        margin: 0.75rem 0 1.5rem;
    }

    body.almendral-home .alm-hero h1 {
        font-size: 1.75rem;
    }

    body.almendral-home .alm-hero h3 {
        font-size: 1rem;
    }
}

/* ==========================================
   AJUSTE DE ESPACIADO VERTICAL
   ========================================== */

/* Reducir espacio superior del contenido */
body.almendral-home #body {
    padding-top: 1rem;
}

/* Acercar el hero al menu */
body.almendral-home .alm-hero {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Reducir separacion con nuestros servicios */
body.almendral-home .alm-hero + h2 {
    margin-top: 1rem;
}

/* Ajustes para notebooks y tablets */
@media (max-width: 1024px) {
    body.almendral-home #body {
        padding-top: 0.75rem;
    }

    body.almendral-home .alm-hero {
        margin-bottom: 0.75rem;
    }
}

/* ==========================================
   ESPACIADO DEFINITIVO DE PORTADA
   ========================================== */

/* Espacio entre menu y contenido */
body.almendral-home #body-wrapper {
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
}

/* Relleno de la tarjeta blanca */
body.almendral-home #body-wrapper > .container > .content-item {
    padding-top: 0.75rem;
    padding-bottom: 1.25rem;
}

/* Separacion del hero con los servicios */
body.almendral-home .alm-hero {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Ajustes para tablets y telefonos */
@media (max-width: 768px) {
    body.almendral-home #body-wrapper {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    body.almendral-home #body-wrapper > .container > .content-item {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }
}

/* ==========================================
   LOGOTIPO CORPORATIVO ALMENDRAL
   ========================================== */

/* Logotipo de escritorio */
body.almendral-home #header .navbar-brand svg {
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Conservar los colores originales del SVG */
body.almendral-home #header .navbar-brand svg [fill] {
    fill: revert-layer;
}

/* Tablets */
@media (max-width: 1024px) {
    body.almendral-home #header .navbar-brand svg {
        height: 36px;
    }
}

/* Telefonos */
@media (max-width: 600px) {
    body.almendral-home #header .navbar-brand svg {
        height: 32px;
    }
}

/* ==========================================
   LOGOTIPO GLOBAL ALMENDRAL IMPRESORES
   ========================================== */

/* Escritorio */
#header .navbar-brand svg {
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Respetar los colores definidos en el SVG */
#header .navbar-brand svg [fill] {
    fill: revert;
}

/* Tablets */
@media (max-width: 1024px) {
    #header .navbar-brand svg {
        height: 36px;
    }
}

/* Telefonos */
@media (max-width: 600px) {
    #header .navbar-brand svg {
        height: 32px;
    }
}

/* ==========================================
   IDENTIDAD CORPORATIVA GLOBAL ALMENDRAL
   ========================================== */

/* Cabecera uniforme */
body #header {
    background: #ffffff;
    border-bottom: 3px solid #E5007D;
}

/* Logotipo uniforme */
body #header .navbar-brand svg {
    height: 40px;
    width: auto;
}

/* Respetar los colores originales del SVG */
body #header .navbar-brand svg [fill] {
    fill: revert;
}

/* Espaciado de las paginas interiores */
body:not(.almendral-home) #body-wrapper {
    background: #ffffff;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
}

/* Tarjeta de contenido interior */
body:not(.almendral-home) #body-wrapper > .container > .content-item {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Titulos interiores */
body:not(.almendral-home) #body-wrapper h1 {
    color: #33363B;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

/* Subtitulos interiores */
body:not(.almendral-home) #body-wrapper h2 {
    color: #33363B;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.3;
}

/* Evitar cortes automaticos de palabras */
body #body-wrapper {
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* Adaptacion para tablets */
@media (max-width: 1024px) {
    body #header .navbar-brand svg {
        height: 36px;
    }
}

/* Adaptacion para telefonos */
@media (max-width: 600px) {
    body #header .navbar-brand svg {
        height: 32px;
    }
}

/* ==========================================
   LOGOTIPO CMYK GLOBAL - ALMENDRAL
   ========================================== */

/* Mantener las dimensiones en todas las paginas */
#header .navbar-brand svg {
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Evitar que Quark2 sustituya los colores del SVG */
#header .navbar-brand svg rect[fill],
#header .navbar-brand svg text[fill],
#header .navbar-brand svg path[fill] {
    fill: revert;
}

/* Colores corporativos de las cuatro barras */
#header .navbar-brand svg rect:nth-of-type(1) {
    fill: #00A9CE;
}

#header .navbar-brand svg rect:nth-of-type(2) {
    fill: #E5007D;
}

#header .navbar-brand svg rect:nth-of-type(3) {
    fill: #F5CD21;
}

#header .navbar-brand svg rect:nth-of-type(4) {
    fill: #33363B;
}

/* Adaptacion a tablets */
@media (max-width: 1024px) {
    #header .navbar-brand svg {
        height: 36px;
    }
}

/* Adaptacion a telefonos */
@media (max-width: 600px) {
    #header .navbar-brand svg {
        height: 32px;
    }
}

/* ==========================================
   IDENTIDAD GLOBAL ALMENDRAL IMPRESORES
   ========================================== */

/* Cabecera corporativa */
body #header {
    background: #ffffff;
    border-bottom: 3px solid #E5007D;
}

/* Logotipo: dimensiones uniformes */
#header .navbar-brand svg {
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Recuperar los colores originales del SVG */
#header .navbar-brand svg rect[fill],
#header .navbar-brand svg text[fill],
#header .navbar-brand svg path[fill] {
    fill: revert;
}

/* Barras CMYK */
#header .navbar-brand svg rect:nth-of-type(1) {
    fill: #00A9CE;
}

#header .navbar-brand svg rect:nth-of-type(2) {
    fill: #E5007D;
}

#header .navbar-brand svg rect:nth-of-type(3) {
    fill: #F5CD21;
}

#header .navbar-brand svg rect:nth-of-type(4) {
    fill: #33363B;
}

/* Texto del logotipo */
#header .navbar-brand svg text[fill="#33363B"] {
    fill: #33363B;
}

#header .navbar-brand svg text[fill="#E5007D"] {
    fill: #E5007D;
}

/* Fondo y espaciado de paginas interiores */
body:not(.almendral-home) #body-wrapper {
    background: #ffffff;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
}

/* Tarjeta de contenido */
body:not(.almendral-home) #body-wrapper > .container > .content-item {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Titulos interiores */
body:not(.almendral-home) #body-wrapper h1 {
    color: #33363B;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

/* Subtitulos */
body:not(.almendral-home) #body-wrapper h2 {
    color: #33363B;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.3;
}

/* Legibilidad */
body #body-wrapper {
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* Tablets */
@media (max-width: 1024px) {
    #header .navbar-brand svg {
        height: 36px;
    }
}

/* Telefonos */
@media (max-width: 600px) {
    #header .navbar-brand svg {
        height: 32px;
    }
}

/* ==========================================
   PIE DE PAGINA CORPORATIVO ALMENDRAL
   ========================================== */

#footer.alm-footer {
    background: #30343B;
    color: #E3E5E9;
    padding: 2rem 0 1rem;
    border-top: 5px solid #E5007D;
}

.alm-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.alm-footer-brand strong {
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.alm-footer-brand strong span {
    color: #E5007D;
}

.alm-footer-brand p {
    color: #E3E5E9;
    margin: 0.4rem 0 0;
}

.alm-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.alm-footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.alm-footer-nav a:hover {
    color: #F5CD21;
}

.alm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #C5C8CE;
}

@media (max-width: 768px) {
    .alm-footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .alm-footer-nav {
        gap: 0.75rem 1.25rem;
    }
}

/* ==========================================
   FOOTER CLARO - ALMENDRAL IMPRESORES
   ========================================== */

#footer.alm-footer {
    background: #F1F3F5;
    color: #33363B;
    border-top: 4px solid #E5007D;
}

/* Nombre de la empresa */
#footer.alm-footer .alm-footer-brand strong {
    color: #33363B;
}

#footer.alm-footer .alm-footer-brand strong span {
    color: #E5007D;
}

/* Eslogan */
#footer.alm-footer .alm-footer-brand p {
    color: #555B63;
}

/* Enlaces del menu */
#footer.alm-footer .alm-footer-nav a {
    color: #33363B !important;
    font-weight: 600;
    text-decoration: none;
}

#footer.alm-footer .alm-footer-nav a:hover,
#footer.alm-footer .alm-footer-nav a:focus-visible {
    color: #E5007D !important;
    text-decoration: underline;
}

/* Copyright */
#footer.alm-footer .alm-footer-bottom {
    color: #555B63;
    border-top: 1px solid #D5D9DE;
}

/* ==========================================
   FOOTER COMPACTO - ALMENDRAL IMPRESORES
   ========================================== */

#footer.alm-footer {
    padding: 0.65rem 0 0.45rem;
    min-height: 0;
}

#footer.alm-footer .alm-footer-content {
    gap: 0.75rem;
    align-items: center;
}

#footer.alm-footer .alm-footer-brand strong {
    font-size: 1rem;
    line-height: 1.2;
}

#footer.alm-footer .alm-footer-brand p {
    margin: 0.15rem 0 0;
    line-height: 1.25;
    font-size: 0.8rem;
}

#footer.alm-footer .alm-footer-nav {
    gap: 0.8rem;
    align-items: center;
}

#footer.alm-footer .alm-footer-nav a {
    line-height: 1.3;
    padding: 0;
}

#footer.alm-footer .alm-footer-bottom {
    margin-top: 0.55rem;
    padding-top: 0.4rem;
    line-height: 1.3;
    font-size: 0.75rem;
}

/* Version movil */
@media (max-width: 768px) {
    #footer.alm-footer {
        padding: 0.7rem 0 0.5rem;
    }

    #footer.alm-footer .alm-footer-content {
        gap: 0.5rem;
    }

    #footer.alm-footer .alm-footer-nav {
        gap: 0.4rem 0.8rem;
    }

    #footer.alm-footer .alm-footer-bottom {
        margin-top: 0.5rem;
    }
}

/* ==========================================
   BOTON COTIZA EN LINEA - CABECERA
   ========================================== */

#header .alm-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E5007D;
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

#header .alm-nav-cta:hover,
#header .alm-nav-cta:focus-visible {
    background: #B90064;
    color: #ffffff;
}

/* Evitar que el boton se comprima */
#header .navbar-section.actions {
    flex-shrink: 0;
}

/* Pantallas pequeñas */
@media (max-width: 768px) {
    #header .alm-nav-cta {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ==========================================
   NAVEGACION CORPORATIVA ALMENDRAL
   ========================================== */

/* Enlaces del menu principal */
#header .desktop-menu .dropmenu > ul > li > a {
    color: #33363B;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Resaltar al pasar el cursor */
#header .desktop-menu .dropmenu > ul > li > a:hover {
    color: #E5007D;
}

/* Pagina activa */
#header .desktop-menu .dropmenu > ul > li.active > a,
#header .desktop-menu .dropmenu > ul > li.current > a {
    color: #E5007D;
}

/* Linea magenta bajo la opcion activa */
#header .desktop-menu .dropmenu > ul > li.active > a,
#header .desktop-menu .dropmenu > ul > li.current > a {
    border-bottom: 2px solid #E5007D;
}

/* Boton de cotizacion */
#header .alm-nav-cta {
    background: #E5007D;
    color: #FFFFFF;
    border-radius: 5px;
    box-shadow: none;
}

#header .alm-nav-cta:hover {
    background: #B90064;
    color: #FFFFFF;
}

/* Ajustes para pantallas medianas */
@media (min-width: 769px) and (max-width: 1100px) {
    #header .desktop-menu .dropmenu > ul > li > a {
        font-size: 0.8rem;
    }

    #header .alm-nav-cta {
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }
}

/* ==========================================
   MENU ACTIVO - CORRECCION QUARK2
   ========================================== */

/* Enlace de la pagina seleccionada */
#header .desktop-menu .dropmenu > ul.navigation > li > a.active {
    color: #E5007D;
    border-bottom: 2px solid #E5007D;
    font-weight: 700;
}

/* Enlaces no seleccionados */
#header .desktop-menu .dropmenu > ul.navigation > li > a:not(.active) {
    border-bottom: 2px solid transparent;
}

/* Efecto al pasar el cursor */
#header .desktop-menu .dropmenu > ul.navigation > li > a:hover {
    color: #E5007D;
}

/* Mantener la altura uniforme del menu */
#header .desktop-menu .dropmenu > ul.navigation > li > a {
    box-sizing: border-box;
}

/* ==========================================
   MENU MOVIL - ALMENDRAL IMPRESORES
   ========================================== */

.overlay .overlay-menu a.active {
    color: #E5007D;
    font-weight: 700;
}

.overlay .alm-mobile-cta {
    margin: 1.25rem auto 0;
    padding: 0 1rem;
    text-align: center;
}

.overlay .alm-mobile-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    background: #E5007D;
    color: #FFFFFF;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.overlay .alm-mobile-cta-button:hover,
.overlay .alm-mobile-cta-button:focus-visible {
    background: #B90064;
    color: #FFFFFF;
}
