﻿@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic,600");

:root {
    --navy: #0b1c2d;
    --charcoal: #1e1e1e;
    --light-gray: #f4f6f8;
    --gold: #c9a24d;
    --orange: #ff9100;
    --cyan: #1cb7e9;
    --white: #ffffff;
    /* tipografias */
    --font-principal: 'Geometos Neue', sans-serif;
    --font-secundaria: 'Poppins', sans-serif;
    --font-tercera: 'Playfair Display', serif;
    /* Espaciados */
    --spacing-section: 4rem;
    --spacing-inner: 2rem;
    /* Sombra */
    --shadow: 0 10px 20px rgba(0, 0, 0, .5);
}



.comunidad-section .heading h2 {
    font-size: 2.3rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.comunidad-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--orange);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ====== Secciones ====== */
.comunidad-section {
    padding: var(--spacing-section) var(--spacing-inner);
    text-align: center;
    background: var(--light-gray);
}

/* ====== Testimonios slider ====== */
.testimonios-slider {
    max-width: 900px;
    margin: 2rem auto;
    color: var(--charcoal);
}

    .testimonios-slider blockquote {
        background: var(--white);
        border: 1px solid var(--orange);
        border-left: 6px solid var(--orange);
        padding: 2rem;
        border-radius: 1rem;
        font-style: italic;
        position: relative;
    }

        .testimonios-slider blockquote span {
            display: block;
            margin-top: 1rem;
            font-weight: bold;
            color: var(--charcoal);
        }

/* Personalización Swiper */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(0, 0, 0, 0.4);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--white);
    transition: background 0.35s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 145, 0, 0.85);
}

.swiper-pagination-bullet-active {
    background: var(--charcoal);
}

/* METRICAS */
.metricas {
    padding: var(--spacing-section) var(--spacing-inner);
    text-align: center;
    background: var(--navy);
}

    .metricas h2 {
        font-size: 2.3rem;
        color: var(--white);
        font-weight: 700;
        margin-bottom: 1rem;
        position: relative;
    }

        .metricas h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background-color: var(--orange);
            margin: 1rem auto 0;
            border-radius: 2px;
        }

.metricas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.circle {
    position: relative;
    width: 160px;
    height: 160px;
}

    .circle svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .circle circle {
        fill: none;
        stroke-width: 12;
        cx: 80;
        cy: 80;
        r: 70;
    }

    .circle .bg {
        stroke: rgba(255, 255, 255, 0.2);
    }

    .circle .progress {
        stroke: var(--orange);
        stroke-dasharray: 440; /* circunferencia aproximada */
        stroke-dashoffset: 440;
        transition: stroke-dashoffset 1.5s ease;
    }

    .circle .number {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--cyan);
    }

    .circle p {
        margin-top: 1rem;
        font-size: 1rem;
        color: var(--white);
    }


/* ====== Dinámicas cards ====== */
.dinamicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dinamica-card {
    background: var(--navy);
    color: var(--white);
    border-bottom: 6px solid var(--gold);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow .3s;
}

    .dinamica-card:hover {
        transform: translateY(-5px);
    }

.btn-action {
    margin-top: auto; /* ⬅️ clave */
    align-self: flex-start;
    padding: 0.7rem 1.5rem;
    background: var(--cyan);
    color: var(--white);
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none; /* para <a> */
}

    .btn-action:hover {
        background: var(--orange);
    }

    /* Tarjetas de redes sociales */
.cards-icons {
    padding: 5rem 0;
    background: var(--white);
}

    .cards-icons .section-header {
        text-align: center;
        max-width: 720px;
        margin: 0 auto 3.5rem;
    }

        .cards-icons .section-header h2 {
            font-size: 2.4rem;
            color: var(--navy);
            margin-bottom: 0.8rem;
        }

        .cards-icons .section-header p {
            color: #555;
            font-size: 1.05rem;
        }

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* CARD */
.service-card {
    position: relative;
    background: var(--light-gray);
    border-radius: 18px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gold);
    border-left: 4px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

    /* Hover elegante */
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    }

/* LOGOS IMG */
.service-logo {
    height: 50%;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-logo img {
        max-height: 100%;
        max-width: 140px;
        object-fit: contain;
    }

/* TITULO */
.service-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.service-card .web-conect {
    display: inline-block;
    margin: 1rem auto 0;
    background: transparent;
    border: 1px solid var(--cyan);
    padding: 0.45rem 1.2rem;
    border-radius: 2rem;
    color: var(--cyan);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

    .service-card .web-conect:hover {
        background: linear-gradient(135deg, var(--gold), var(--orange));
        border: 1px solid var(--gold);
        color: var(--white);
    }

/* Redes sociales */
.service-card .redes{
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

    .service-card .redes a {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(0,0,0,0.15);
        color: var(--navy);
        font-size: 1.15rem;
        text-decoration: none;
        transition: all 0.25s ease;
    }

        /* Hover elegante, no circo */
        .service-card .redes a:hover {
            background: var(--navy);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(0,0,0,0.18);
        }

            /* Opcional: micro diferenciación por red (muy sutil) */
            .service-card .redes a:hover .fa-facebook {
                color: #1877f2;
            }

            .service-card .redes a:hover .fa-instagram {
                color: #e1306c;
            }

            .service-card .redes a:hover fa-x-twitter {
                color: #fff;
            }

            .service-card .redes a:hover .fa-tiktok {
                color: #25f4ee;
            }

/* ====== Galería ====== */
.filtros {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

    .filtros button {
        background: var(--cyan);
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        color: var(--white);
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
    }

        .filtros button.active,
        .filtros button:hover {
            background: var(--navy);
            color: var(--white);
        }

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

    /* Imágenes */
    .galeria-grid a,
    .video-thumb {
        transition: opacity .25s ease, transform .25s ease;
        cursor: pointer;
    }

        .galeria-grid a.oculto,
        .video-thumb.oculto {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: scale(.95);
            position: absolute;
        }

.play-icon {
    margin: auto;
    width: 55px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50%;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
}

.video-thumb:hover .play-icon {
    opacity: 0.95;
    transform: scale(1.15); /* Se oculta cuando sale el preview */
}

.gallery-item {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}

    .gallery-item:hover {
        transform: scale(1.05);
    }

/* ===== Lightbox de Video ===== */
.video-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

    .video-lightbox.active {
        display: flex;
    }

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(4px);
}

.video-container {
    position: relative;
    z-index: 10;
    max-width: 70%;
    justify-content: center;
    animation: fadeIn .3s ease;
}

video {
    width: 95%;
    border-radius: 1rem;
    background: black;
}

.video-close {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}


#footer {
    position: inherit;
    overflow: hidden;
    background: var(--negro);
    color: var(--blanco);
    padding: 1rem 0 1rem 0;
    color: var(--blanco);
    text-align: center;
    font-size: 0.9rem;
}

    #footer .icon.ciculed {
        background: var(--blanco);
        color: var(--blanco);
    }

    #footer header {
        text-align: center;
        cursor: pointer;
    }

    #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 {
        color: var(--azul2);
    }

    #footer .contact {
        text-align: center;
    }

    #footer ul.icons {
        position: relative;
        background: var(--gris2);
        border-radius: 4em;
        display: inline-block;
        padding: 0.35em 0.75em 0.35em 0.75em;
        font-size: 1.25em;
        cursor: pointer;
        list-style: none;
        color: var(--blanco);
    }

        #footer ul.icons li {
            display: inline-block;
            padding-left: 0;
        }

            #footer ul.icons li a {
                display: inline-block;
                background: none;
                width: 2.5em;
                height: 2.5em;
                line-height: 2.5em;
                text-align: center;
                border-radius: 100%;
                border: 0;
                color: inherit;
            }

                #footer ul.icons li a:hover {
                    color: var(--naranja);
                }

    #footer .copyrigth {
        text-align: center;
        padding: var(--spacing-inner);
    }

/* Ajuste de separación SOLO en móviles */
@media (max-width: 480px) {
    .metricas-grid {
        gap: 5rem; /* más aire vertical */
        padding-top: 2.5rem;
        padding-bottom: 5rem;
    }

    .circle p {
        margin-top: 1.25rem; /* separa texto del círculo */
    }
}

/*          DARK MODE COMUNIDAD             */

@media (prefers-color-scheme: dark) {

    /* Secciones base */
    .comunidad-section {
        background: var(--light-grayd);
        color: var(--charcoald);
    }

        .comunidad-section .heading h2 {
            color: var(--charcoald);
        }

        .comunidad-section h2::after {
            background-color: var(--oranged);
        }

    /* Testimonios */
    .testimonios-slider {
        color: var(--charcoald);
    }

        .testimonios-slider blockquote {
            background: #16222e;
            border: 1px solid var(--oranged);
            border-left: 6px solid var(--oranged);
            color: var(--charcoald);
            box-shadow: 0 12px 35px rgba(0,0,0,.6);
        }

            .testimonios-slider blockquote span {
                color: var(--charcoald);
            }

    /* Swiper */
    .swiper-button-next,
    .swiper-button-prev {
        background: rgba(255,255,255,0.08);
        color: var(--charcoald);
    }

        .swiper-button-next:hover,
        .swiper-button-prev:hover {
            background: var(--oranged);
            color: var(--whited);
        }

    .swiper-pagination-bullet-active {
        background: var(--charcoald);
    }

    /* MÉTRICAS */
    .metricas {
        background: var(--navyd);
    }

        .metricas h2 {
            color: var(--charcoald);
        }

            .metricas h2::after {
                background-color: var(--oranged);
            }

    .circle .bg {
        stroke: rgba(255,255,255,0.12);
    }

    .circle .progress {
        stroke: var(--oranged);
    }

    .circle .number {
        color: var(--cyand);
    }

    .circle p {
        color: var(--charcoald);
    }

    /* Dinámicas */
    .dinamica-card {
        background: #16222e;
        color: var(--charcoald);
        border-bottom: 6px solid var(--goldd);
        box-shadow: 0 14px 40px rgba(0,0,0,.6);
    }

    .btn-action {
        background: var(--cyand);
        color: var(--whited);
    }

        .btn-action:hover {
            background: var(--oranged);
        }

    /* Cards sociales */
    .cards-icons {
        background: var(--whited);
    }

        .cards-icons .section-header h2 {
            color: var(--charcoald);
        }

        .cards-icons .section-header p {
            color: #a9b4c0;
        }

    .service-card {
        background: #16222e;
        border: 1px solid var(--goldd);
        border-left: 4px solid var(--goldd);
        box-shadow: 0 12px 35px rgba(0,0,0,.6);
    }

        .service-card h3 {
            color: var(--charcoald);
        }

        .service-card .web-conect {
            border: 1px solid var(--cyand);
            color: var(--cyand);
        }

            .service-card .web-conect:hover {
                background: linear-gradient(135deg, var(--goldd), var(--oranged));
                border: 1px solid var(--goldd);
                color: var(--whited);
            }

        .service-card .redes a {
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--charcoald);
        }

            .service-card .redes a:hover {
                background: var(--navyd);
                color: var(--charcoald);
                box-shadow: 0 10px 25px rgba(0,0,0,.7);
            }

    /* Filtros */
    .filtros button {
        background: var(--cyand);
        color: var(--whited);
    }

        .filtros button.active,
        .filtros button:hover {
            background: var(--navyd);
            color: var(--charcoald);
        }

    /* Galería */
    .gallery-item {
        box-shadow: 0 14px 35px rgba(0,0,0,.6);
    }

    .play-icon {
        background: rgba(0,0,0,.75);
        color: var(--charcoald);
    }

    /* Lightbox */
    .video-overlay {
        background: rgba(0,0,0,.9);
    }

    .video-close {
        color: var(--charcoald);
    }
}