/*
 * CSS propio del tema hijo ANMYES. Mobile-first, BEM, sin !important.
 * Breakpoints: 480 / 768 / 1024 / 1280.
 * Los colores de --anmyes-color-* se sobreescriben en <head> desde el
 * Customizer (ver inc/customizer.php); estos son solo el fallback.
 */

:root {
    --anmyes-color-primario: #0063B2;
    --anmyes-color-secundario: #0b193c;
    --anmyes-color-acento: #25D366;
    --anmyes-color-superficie: #faf8ff;
    --anmyes-color-texto: #1a1b20;
    --anmyes-fuente-cuerpo: 'Inter', sans-serif;
    --anmyes-fuente-titulos: 'Manrope', sans-serif;
    --anmyes-fuente-acento: 'Space Grotesk', sans-serif;
    --anmyes-contenedor-ancho: 1260px;
}

/* ============ Footer: 3 columnas en desktop, 1 en móvil ============ */
.anmyes-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
    background-color: var(--anmyes-color-secundario);
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .anmyes-footer {
        grid-template-columns: repeat(3, 1fr);
        max-width: var(--anmyes-contenedor-ancho);
        margin: 0 auto;
    }
}

.anmyes-footer__descripcion {
    max-width: 32ch;
    font-size: 0.9rem;
    line-height: 1.6;
}

.anmyes-footer__enlaces {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.anmyes-footer__enlaces a {
    color: inherit;
    text-decoration: none;
}

.anmyes-footer__enlaces a:hover,
.anmyes-footer__enlaces a:focus-visible {
    color: #ffffff;
}

.anmyes-footer__contacto a {
    color: inherit;
    text-decoration: none;
}

/* ============ Fila de redes sociales ============ */
.anmyes-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    justify-content: center;
}

.anmyes-footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.anmyes-footer-social__link:hover,
.anmyes-footer-social__link:focus-visible {
    background-color: var(--anmyes-hover-color, var(--anmyes-color-primario));
    transform: translateY(-2px);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ============ Botón flotante de WhatsApp (abajo-izquierda) ============ */
.anmyes-whatsapp-float {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 40;
}

.anmyes-whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--anmyes-color-acento);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.anmyes-whatsapp-float a:hover,
.anmyes-whatsapp-float a:focus-visible {
    transform: scale(1.08);
    background-color: #20b859;
}

@media (min-width: 768px) {
    .anmyes-whatsapp-float {
        bottom: 24px;
        left: 24px;
    }

    .anmyes-whatsapp-float a {
        width: 60px;
        height: 60px;
    }
}

/* Bajo el header sticky en móvil, para no taparlo */
@media (max-width: 767px) {
    .anmyes-whatsapp-float {
        z-index: 40;
    }
}

/* ============ Slider principal (hero) ============ */
.anmyes-slider {
    position: relative;
    width: 100%;
}

.anmyes-slider .swiper-slide {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

.anmyes-slider__imagen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.anmyes-slider__contenido {
    padding: 1.5rem;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(11, 25, 60, 0.85) 0%, rgba(11, 25, 60, 0) 60%);
    width: 100%;
}

.anmyes-slider__titulo {
    font-family: var(--anmyes-fuente-titulos);
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.anmyes-slider__subtitulo {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.anmyes-slider__boton {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background-color: var(--anmyes-color-primario);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.anmyes-slider__boton:hover,
.anmyes-slider__boton:focus-visible {
    background-color: var(--anmyes-color-secundario);
}

@media (min-width: 768px) {
    .anmyes-slider .swiper-slide {
        min-height: 80vh;
    }

    .anmyes-slider__contenido {
        padding: 4rem;
        max-width: 640px;
    }

    .anmyes-slider__titulo {
        font-size: 2.75rem;
    }
}

/* ============ Portafolio: filtros + grid ============ */
.anmyes-portafolio__filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.anmyes-portafolio__filtro {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--anmyes-color-primario);
    background: transparent;
    color: var(--anmyes-color-primario);
    font-weight: 600;
    cursor: pointer;
}

.anmyes-portafolio__filtro.is-activo {
    background-color: var(--anmyes-color-primario);
    color: #ffffff;
}

.anmyes-portafolio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .anmyes-portafolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .anmyes-portafolio__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.anmyes-portafolio__tarjeta img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
}

.anmyes-portafolio__titulo {
    font-family: var(--anmyes-fuente-titulos);
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

/* ============ Animación de aparición (main.js) ============ */
.anmyes-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anmyes-reveal.anmyes-animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .anmyes-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
