/* Styling for the social buttons container */
.social-buttons {
    position: fixed;
    right: 0; /* pegado a la pared */
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* alinea los hijos al borde derecho */
    gap: 12px;
    z-index: 1000;
    padding-right: 6px; /* pequeño respiro del borde */
}

/* Common styles for all social buttons */
.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* botones circulares, look más limpio */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    position: relative;
    overflow: visible; /* para que la etiqueta se muestre afuera */
    transition: background-color 0.25s ease;
}

/* Etiqueta tipo "píldora" aparece a la izquierda sin mover el botón */
.social-buttons a::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(30, 30, 30, 0.65);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

/* caret apuntando al botón */
.social-buttons a::before {
    content: '';
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(30,30,30,0.65);
    opacity: 0;
    transition: opacity .18s ease;
}

/* Mostrar etiqueta sólo del botón bajo el mouse */
.social-buttons a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.social-buttons a:hover::before { opacity: 1; }

/* Specific styles for each button with explicit colors */
.whatsapp-button {
    background-color: #25D366; /* WhatsApp green */
    color: #ffffff;
}

.whatsapp-button:hover {
    background-color: #20b358; /* Darker green on hover */
}

.tiktok-button {
    background-color: #000000; /* TikTok black */
    color: #ffffff;
}

.tiktok-button:hover {
    background-color: #333333; /* Lighter black on hover */
}

.instagram-button {
    background: linear-gradient(45deg, #833AB4, #C13584, #E1306C); /* degradé más icónico */
    color: #ffffff;
}

.instagram-button:hover {
    background: linear-gradient(45deg, #7131a1, #a42c6f, #b02860);
}

.googlemaps-button {
    background-color: #4285F4; /* Google Maps blue */
    color: #ffffff;
}

.googlemaps-button img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.googlemaps-button:hover {
    background-color: #357ae8; /* Darker blue on hover */
}

/* Ensure icons are properly sized */
.social-buttons a i {
    font-size: 22px;
}

/* ----------------------------------------------------- */
/* Barra fija izquierda para redes sociales (.social)    */
/* ----------------------------------------------------- */

.social {
    position: fixed; /* siempre visible */
    right: 0; /* pegado a la derecha */
    bottom: 20px; /* en la parte inferior */
    padding-right: 6px; /* pequeño respiro del borde */
    z-index: 2000; /* por encima de otros elementos */
}

.social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px; /* más separación entre botones */
}

.social ul li {
    margin: 0;
    padding: 0;
}

.social ul li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: #000;
    padding: 12px 20px; /* más ancho por defecto */
    padding-left: 20px; /* que sobresalga más hacia adentro */
    text-decoration: none;
    -webkit-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease; /* transición suave */
    border-top-left-radius: 40px; /* al estar a la derecha, redondeamos el lado izquierdo */
    border-bottom-left-radius: 40px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
    transform: translateX(-8px); /* que salga un poco por defecto */
}

/* Colores por red (nuevas clases) */
.social ul li .icon-whatsapp { background: #25D366; }
.social ul li .icon-tiktok { background: #000000; }
.social ul li .icon-instagram { background: linear-gradient(45deg, #833AB4, #C13584, #E1306C); }
.social ul li .icon-googlemaps { background: #4285F4; }
.social ul li a i {
    font-size: 26px; /* icono más grande */
}

.social ul li a .label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;            /* oculta el texto inicialmente */
    max-width: 0;                /* colapsado por defecto */
    opacity: 0;                  /* invisible por defecto */
    transform: translateX(-6px); /* sutil desplazamiento */
    transition: max-width .25s ease, opacity .2s ease, transform .25s ease; /* transición suave */
}

.social ul li a:hover {
    padding: 12px 20px 12px 60px; /* se extiende más hacia la izquierda (hacia adentro) */
    transform: translateX(-14px); /* sale aún más en hover */
    box-shadow: 0 12px 26px rgba(0,0,0,0.34);
}

/* Mostrar el nombre al desplegarse (hover) */
.social ul li a:hover .label {
    max-width: 180px;      /* espacio suficiente para el texto */
    opacity: 1;            /* visible */
    transform: translateX(0);
}

/* Colores por red (nuevas clases) */
.social ul li .icon-whatsapp { background: #25D366; }
.social ul li .icon-tiktok { background: #000000; }
.social ul li .icon-instagram { background: linear-gradient(45deg, #833AB4, #C13584, #E1306C); }
.social ul li .icon-googlemaps { background: #4285F4; }