/*
 * @Autor: David Vargas C.
 * @Telefono: +591 70870800
 * @Oficina: Sistemas | CCES-D
 * @Servicio: SEDES Santa Cruz
 * @Correo: dx.crazzy@gmail.com
 * @Version: Version 1.0.0
 */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00773f;
    --primary-dark: #004631;
    --primary-light: #bedb8b;
    --white: #ffffff;

    --logo-top: clamp(8px, 3vh, 25px);
    --logo-pad-y: clamp(4px, 1vh, 12px);
    --logo-height: clamp(100px, 24vh, 220px);
    --logo-gap: clamp(2px, 0.8vh, 8px);
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.bg-slide.active {
    opacity: 1;
    z-index: 2;
}

.bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transform: scale(1);
}

.bg-slide.active img {
    animation: kenBurns1 8s ease-out forwards;
}

.bg-slide:nth-child(2).active img {
    animation-name: kenBurns2;
}

.bg-slide:nth-child(3).active img {
    animation-name: kenBurns3;
}

@keyframes kenBurns1 {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.12) translate(-2%, -2%);
    }
}

@keyframes kenBurns2 {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.12) translate(2%, 2%);
    }
}

@keyframes kenBurns3 {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.12) translate(-2%, 2%);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.gad-logo {
    position: fixed;
    top: var(--logo-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: fadeInDown 1s ease-out;
    background: transparent;
    padding: var(--logo-pad-y) clamp(15px, 3vw, 25px);
}

.gad-logo img {
    height: var(--logo-height);
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.affiliation-btn {
    position: fixed;
    top: clamp(15px, 4vh, 30px);
    right: clamp(15px, 3vw, 30px);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: clamp(9px, 1.6vh, 13px) clamp(16px, 2.5vw, 22px);
    background: var(--primary-color);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.8rem, 1.6vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 119, 63, 0.45);
    transition: all 0.3s ease;
    animation: fadeInDownBtn 1s ease-out;
}

.affiliation-btn svg {
    transition: transform 0.3s ease;
}

.affiliation-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 70, 49, 0.55);
}

.affiliation-btn:hover svg {
    transform: translateX(3px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInDownBtn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: calc(var(--logo-top) + var(--logo-pad-y) + var(--logo-height) + var(--logo-pad-y) + var(--logo-gap));
    padding-inline: clamp(15px, 4vw, 40px);
    padding-bottom: clamp(15px, 3vh, 30px);
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-section {
    text-align: center;
    margin-bottom: clamp(8px, 2vh, 25px);
    margin-top: clamp(2px, 1vh, 10px);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 1px 5px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1.2s ease-out 0.3s both;
}

.slider-dots {
    display: none;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary-color);
}

.countdown-section {
    text-align: center;
    width: min(560px, 100%);
    margin: 0 auto clamp(12px, 2.5vh, 35px);
    padding: clamp(20px, 3.5vw, 30px);
    background: rgba(0, 119, 63, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 119, 63, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.8s ease-out 0.5s both;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.countdown-title {
    font-size: 1.5rem;
    color: var(--white);
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(10px, 2.5vh, 35px);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8), 0 1px 8px rgba(0, 0, 0, 0.6);
    transition: opacity 0.5s ease;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 560px;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 10px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.countdown-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.social-section {
    text-align: center;
    margin-bottom: clamp(6px, 1.5vh, 20px);
    animation: fadeIn 1s ease-out 1s both;
}

.social-title {
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: clamp(8px, 2vh, 15px);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.social-btn:hover::before {
    transform: scale(1);
}

.social-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.social-btn svg {
    position: relative;
    z-index: 1;
}

.facebook { background: #3b5998; }
.tiktok { background: #000000; }

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.copyright,
.site-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.whatsapp-support {
    display: inline-flex;
    vertical-align: -0.15em;
    margin-left: 6px;
    color: #25D366;
    transition: color 0.3s ease, transform 0.3s ease;
}

.whatsapp-support svg {
    width: 1em;
    height: 1em;
}

.whatsapp-support:hover {
    color: var(--primary-light);
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 0.9rem;
    }

    .countdown-title {
        font-size: 1.3rem;
    }

    .countdown-item {
        padding: 20px 10px;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .social-title {
        font-size: 1rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer {
        padding: 12px 15px;
    }

    .copyright,
    .site-info {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .affiliation-btn {
        position: static;
        margin: 0 auto clamp(16px, 3.5vh, 28px);
        padding: 13px 26px;
        font-size: 0.9rem;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .footer {
        padding: 10px 12px;
    }

    .copyright,
    .site-info {
        font-size: 0.62rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .countdown-section {
        margin-bottom: 4px;
        padding: 14px;
    }

    .countdown-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .countdown-item {
        padding: 10px 8px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .social-title {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 20px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-height: 600px) {
    .footer {
        position: static;
    }

    .main-content {
        padding-bottom: 15px;
    }
}

@media (max-height: 420px) {
    .main-content {
        padding-top: 60px;
    }

    .gad-logo img {
        height: 40px;
    }

    .countdown-section {
        padding: 12px;
        margin-bottom: 10px;
    }

    .countdown-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .countdown {
        gap: 12px;
    }

    .countdown-item {
        padding: 8px 6px;
    }

    .countdown-value {
        font-size: 1.6rem;
        margin-bottom: 2px;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .social-section {
        margin-bottom: 4px;
    }

    .social-title {
        margin-bottom: 4px;
    }
}
