/* LOGO */
/* en header */
.navbar-brand img.logo {
    height: 120px;      
    width: auto;
    max-height: none;
}
/* en footer */
footer .f-item.about img {
    height: 120px;  
    width: auto;
    max-width: none;
}

/* Logo dentro del menú colapsado (cuando se abre el menú en mobile) */
#navbar-menu > img.logo-mobile{
    height: 120px;      
    width: auto;
    max-height: none;
    margin: 10px 0;   
}

/* ===========================
    SECCION: HEADER-TOP logo + ¿Tenes consultas? 
   =========================== */

   /* Evitar solape: ocultar "Tenés consultas?" un poco antes del hamburger */
@media (max-width: 1023px) {
    header .attr-right {
        display: none !important;
    }
}


/* ===========================
    SECCION: TITULOS HERO / SLIDER
   =========================== */

.banner-area .content h2 {
    font-size: 65px;      /* antes suele ser 64px o más */
    line-height: 1.15;
}

@media (max-width: 1200px) {
    .banner-area .content h2 {
        font-size: 42px;
    }
}

    @media (max-width: 575px) {
    .banner-area .content h2 {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* Seccion de botones dentro del HERO */
/* Cambiamos el color del hover */
.btn-theme::after {
    background: var(--color-secondary) !important;
}

.btn-theme:hover::after {
    background: var(--color-secondary) !important;
}

/* ==========================
    HERO: bullets solo en mobile/tablet
   ========================== */
/* Por defecto: ocultamos la paginación del hero */
#home .hero-pagination {
    display: none;
}

.wpp-contact-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wpp-contact-link:hover {
    color: var(--color-secondary) !important;
}

.wpp-contact-link:hover h4,
.wpp-contact-link:hover span {
    color: inherit;
}

.wpp-contact-link:hover i {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}


/* <= 830px: "altura fija" y mostramos bullets */
@media (max-width: 830px) {

    /* pisamos height del template */
    #home.banner-area{
        height: 100vh !important;
        min-height: 620px;       
        overflow: hidden !important;
    }

    /* Importante: que swiper tome esa altura */
    #home .banner-fade,
    #home .swiper-wrapper,
    #home .swiper-slide {
        height: 100% !important;
    }

    /* pagination visible y fijo abajo */
    #home .hero-pagination{
        display: block !important;
    }

    #home .hero-pagination .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        opacity: 1;
        border-radius: 50% !important; /* lo hacemos circulo */
        background: rgba(255,255,255,.35);
    }

    #home .hero-pagination .swiper-pagination-bullet-active {
        transform: scale(1.2);
        background: var(--color-primary);
    }
    
}

/* ===========================
    SECCION Areas y organismos 
   =========================== */
#areas {
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Agrandar bullets del carrusel Áreas */
.service-four-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    opacity: 1;
}

.service-four-pagination .swiper-pagination-bullet-active {
    transform: scale(1.2);
}

/* Áreas y organismos - color bullet activo */
#areas .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
}

#areas .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* Centrar contenido de tarjetas en sección APN */
#areas .services-style-four {
    text-align: center;
}

#areas .services-style-four img {
    margin: 0 auto 15px auto;
    display: block;
    max-height: 70px; /* opcional: unifica altura visual de logos */
    width: auto;
}


/* ===========================
    SECCION WhatsApp Widget (Agente protagonista)
   =========================== */
.wpp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
    overflow: hidden;
    z-index: 9999;
}

/* Contenido */
.wpp-content {
    padding: 18px;
    text-align: center;
}

.wpp-content h4 {
    margin: 0;
    font-size: 18px;
}

.wpp-role {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.wpp-text {
    font-size: 14px;
    margin: 10px 0 15px;
}

/* Botón WhatsApp */
.wpp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 13px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.wpp-button:hover {
    background: #1ebe5d;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.wpp-button i {
    font-size: 18px;
}

/* Estado online */
.wpp-status {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
}

/* SECCION Minimizar */
.wpp-minimize {
    /* all: unset; Borramos lo que hereda del template */
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    padding: 0;
}

.wpp-minimize:hover {
    background: none;
}

/* Estado minimizado */
.wpp-widget.is-minimized {
    height: 52px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.wpp-widget.is-minimized .wpp-avatar,
.wpp-widget.is-minimized .wpp-content,
.wpp-widget.is-minimized .wpp-minimize {
    display: none;
}

/* Mostrar solo la barra */
.wpp-widget.is-minimized .wpp-minimized-bar {
    display: flex;
}

/* Barra minimizada */
.wpp-minimized-bar {
    display: none;
    height: 52px;
    padding: 0 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #25D366;
}

/* Mostrar solo cuando está minimizado */
.wpp-widget.is-minimized .wpp-minimized-bar {
    display: flex;
}

.wpp-widget.is-minimized:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,0.8);
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Widget: oculto hasta que JS lo habilite */
.wpp-widget {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

/* Cuando está listo */
.wpp-widget.is-ready {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Mobile: por defecto minimizado (solo si además está listo) */
@media (max-width: 768px) {
    .wpp-widget.is-ready {
        /* nada acá; el estado minimizado lo aplica JS */
    }
}

@media (max-width: 768px) {
  /* Posición más segura en mobile */
    .wpp-widget {
        right: 12px;
        left: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: 260px;              /* widget abierto más angosto en mobile */
        max-width: calc(100vw - 24px);
    }

    /* Minimizado: pill más chico para que no tape CTAs */
    .wpp-widget.is-minimized {
        height: 44px;              /* de 52 */
        width: 170px;              
        border-radius: 999px;
    }

    .wpp-minimized-bar {
        height: 44px;              /* match del widget minimizado */
        padding: 0 12px;
        font-size: 13px;
        gap: 6px;
        justify-content: flex-end; /* en vez de center */
    }

    .wpp-minimized-bar i {
        font-size: 16px;
    }

    /* Hover no existe en mobile; evitá saltos raros */
    .wpp-widget.is-minimized:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        transition: none;
    }
}


/* ===========================
    PALETA COOPERATIVA 2001
    =========================== */

:root {
    /* Protagonista: Blue / Purple */
    --color-primary: #5B3CC4;   /* ejemplo purple */

    /* Secundario: Teal */
    --color-secondary: #1CB5B0;

    /* CTA: Lime Green */
    --color-style-five: #9BE000;

    /* Ajustes opcionales */
    --color-style-two: #1CB5B0;
    --color-style-three: #4CAF50;

    /* Gradientes */
    --bg-gradient: linear-gradient(
        45deg,
        var(--color-primary) 30%,
        var(--color-secondary) 90%
    );

    --bg-gradient-five: linear-gradient(
        65deg,
        var(--color-secondary) 30%,
        var(--color-primary) 100%
    );
}
