/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo y estructura principal */
body {
    font-family: 'Comfortaa', cursive;
    background: url('media/pachi.store.web.png') center/cover fixed no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    text-align: center;
}

/* Contenedor principal */
.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideIn 0.5s ease-out;
}

/* Animación de entrada */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lema */
.brand-phrase {
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.4;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px #fff; /* borde para dar más grosor */
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: .05em;
    position: relative;
    animation: typing 8s steps(40, end) infinite; /* bucle escribir-borrar */
}

/* Cursor personalizado con "_" */
.typewriter::after {
    border-right: .15em solid #00BFFF; /* cursor celeste tipo barra */
    position: absolute;
    right: -10px; /* cursor al final del texto */
    animation: blink-caret .75s step-end infinite; /* parpadeo independiente */
}

/* Animación de escritura y borrado */
@keyframes typing {
    0% { width: 0 }
    40% { width: 100% }   /* escribe todo */
    60% { width: 100% }   /* mantiene un momento */
    100% { width: 0 }     /* borra todo */
}

/* Animación del cursor */
@keyframes blink-caret {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}


/* Logo */
.logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Botón WhatsApp */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px; /* menos espacio vertical */
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.8rem;
    line-height: 1;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

/* Botones sociales */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Animación brillo diagonal */
.social-btn::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg) translate(-150%, -50%);
    transition: transform 0.5s ease;
}

.social-btn:hover::after {
    transform: rotate(25deg) translate(150%, -50%);
}

.social-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    filter: brightness(1.2);
}

/* Gradientes personalizados */
.tiktok { background: #000; }
.facebook { background: linear-gradient(135deg, #1877F2, #3b5998); }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Responsive */
@media (max-width: 768px) {
    .logo { max-width: 180px; margin-bottom: 25px; }
    .social-btn { width: 55px; height: 55px; font-size: 24px; }
    .social-buttons { gap: 15px; }
    .brand-phrase { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .logo { max-width: 140px; margin-bottom: 20px; }
    .social-btn { width: 50px; height: 50px; font-size: 22px; }
    .social-buttons { gap: 12px; }
    .brand-phrase { font-size: 1.2rem; }
}
