
/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 30px 15px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #000;
    font-family: 'Roboto', sans-serif;
}

/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.example {
    width: 100%;
    max-width: 850px;
    margin: auto;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

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

/* =========================================
   ENCABEZADO
========================================= */

.header {
    width: 100%;
    text-align: center;
}

.example h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 12px;
}

.example p {
    color: #fff;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 300;
    margin: 8px 0;
}

.launch-date {
    color: #00bfff !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

/* =========================================
   CONTADOR
========================================= */

.countdown-section {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    overflow: visible;
}

.clock {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estructura original de FlipClock */

.flip-clock-wrapper {
    width: max-content;
    max-width: 100%;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
}

/* Etiquetas */

.flip-clock-label {
    color: #fff !important;
    font-size: 16px !important;
}

/* =========================================
   CONTACTO Y REDES SOCIALES
========================================= */

.buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;

    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

.contact-info i {
    color: #25D366;
    font-size: 23px;
}

.contact-info strong {
    color: #fff;
}

/* =========================================
   BOTÓN FACEBOOK
========================================= */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;

    min-height: 48px;
    padding: 0 22px;

    color: #fff;
    background-color: #00bfff;
    border: 2px solid #00bfff;
    border-radius: 6px;

    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;

    transition: all 0.25s ease;
}

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

.button:hover {
    background-color: #fff;
    color: #00bfff;
    border-color: #fff;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 768px) {

    .example {
        gap: 18px;
        padding: 15px 5px;
    }

    .logo img {
        width: 85px;
    }

    .buttons {
        gap: 18px;
    }

    .flip-clock-wrapper {
        transform: scale(0.85);
        transform-origin: center;
    }

    .flip-clock-label {
        font-size: 14px !important;
    }
}

/* =========================================
   CELULARES
========================================= */

@media (max-width: 550px) {

    body {
        padding: 25px 10px;
    }

    .example {
        gap: 15px;
    }

    .logo img {
        width: 75px;
    }

    .example h1 {
        font-size: 2rem;
    }

    .example p {
        font-size: 0.95rem;
    }

    .launch-date {
        font-size: 0.85rem !important;
        letter-spacing: 0;
    }

    /* Escalar contador */

    .flip-clock-wrapper {
        transform: scale(0.68);
        transform-origin: center;
    }

    .flip-clock-label {
        font-size: 13px !important;
    }

    /* Ocultar COMPLETAMENTE los segundos */

    .flip-clock-wrapper:has(.flip-clock-divider.seconds)
    > .flip-clock-divider.seconds,
    
    .flip-clock-wrapper:has(.flip-clock-divider.seconds)
    > .flip-clock-divider.seconds ~ ul {
        display: none !important;
    }

    /* Contacto */

    .buttons {
        flex-direction: column;
        gap: 20px;
        margin-top: 5px;
    }

    .contact-info {
        font-size: 13px;
        text-align: center;
    }

    .button {
        width: 190px;
    }
}

/* =========================================
   CELULARES PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    .example h1 {
        font-size: 1.7rem;
    }

    .flip-clock-wrapper {
        transform: scale(0.55);
    }

    .flip-clock-label {
        font-size: 12px !important;
    }

    .contact-info {
        font-size: 12px;
    }
}

/* =========================================
   PANTALLAS MUY PEQUEÑAS
========================================= */

@media (max-width: 320px) {

    .flip-clock-wrapper {
        transform: scale(0.48);
    }

}
