/*
Theme Name: Serano Child
Theme URI: https://serano.clapat-themes.com/
Description: Responsive Wordpress Theme
Template: serano
Version: 1.0
Author: You
Author URI: https://your site
License: Themeforest
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: serano-child
*/


/*------------------------------------------------------------------

Add here your own styles
-------------------------------------------------------------------*/

/* Personaliza el borde redondeado de las imágenes con estilo 'rounded' */
.wp-block-image.is-style-rounded img {
    border-radius: 15px !important;
}

/* Personaliza el separador con grosor de 1px y alfa 50% */
hr.wp-block-separator.has-alpha-channel-opacity {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.3); /* Negro con 50% de opacidad */
    height: 1px;
    opacity: 1; /* Asegura que no se aplique otra opacidad */
    margin: 2em 0; /* Opcional: ajusta el espacio arriba y abajo */
}


/*------------------------------------------------------------------
  Estilos originales del tema hijo
-------------------------------------------------------------------*/

/* Borde redondeado en imágenes con estilo 'rounded' */
.wp-block-image.is-style-rounded img {
    border-radius: 15px !important;
}

/* Separador delgado 1px con alfa */
hr.wp-block-separator.has-alpha-channel-opacity {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    height: 1px;
    opacity: 1;
    margin: 2em 0;
}

/*------------------------------------------------------------------
  XIUH BIO PAGE — Override total contra Serano
  Problema: body.uppercase-text aplica text-transform:uppercase a todo.
  Solución: especificidad máxima con body + ID de página + scope .xb
  Estos selectores ganan sobre cualquier regla del tema padre.
-------------------------------------------------------------------*/

/* ---- Fuente Inter (carga desde Google Fonts vía @import) ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/*
  Selector de máxima especificidad:
  body.uppercase-text .xb anula la regla del tema padre
  sin necesidad de !important en cada propiedad individual
  (aunque lo dejamos en las críticas por seguridad)
*/
body .xb,
body .xb *,
body.uppercase-text .xb,
body.uppercase-text .xb * {
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

/* Reset headings dentro de .xb */
body .xb h1,
body .xb h2,
body .xb h3,
body .xb h4,
body .xb h5,
body .xb h6,
body.uppercase-text .xb h1,
body.uppercase-text .xb h2,
body.uppercase-text .xb h3,
body.uppercase-text .xb h4,
body.uppercase-text .xb h5,
body.uppercase-text .xb h6 {
    all: unset !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    color: inherit !important;
}

/* Reset párrafos */
body .xb p,
body.uppercase-text .xb p {
    all: unset !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    color: inherit !important;
}

/* Reset links */
body .xb a,
body.uppercase-text .xb a {
    all: unset !important;
    display: block !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
}

/* Reset listas */
body .xb ul,
body .xb ol,
body.uppercase-text .xb ul,
body.uppercase-text .xb ol {
    all: unset !important;
    display: flex !important;
}

body .xb li,
body.uppercase-text .xb li {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .xb img,
body.uppercase-text .xb img {
    max-width: 100% !important;
    border: 0 !important;
    display: block !important;
}

/*------------------------------------------------------------------
  VARIABLES Y WRAPPER RAÍZ
-------------------------------------------------------------------*/
body .xb {
    --accent:   #d38a67;
    --bg:       #1f1f20;
    --bg-80:    rgba(31,31,32,0.8);
    --bg-full:  rgba(31,31,32,1);
    --r-card:   20px;
}

body .xb {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-color: #1f1f20;
    overflow-x: hidden;
    color: #d38a67;
}

/* Fondo con imagen fija — igual al body::before del original Dooyu */
body .xb__bg {
    position: fixed;
    inset: 0;
    background-image: url('https://d37zi1b5cydl9r.cloudfront.net/dooyu/bio/background_image_655_dbf4fff6-9e88-45ab-83da-4726f01804ff_4769e72d-59d6-42f2-b047-8126e85dedb8.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    z-index: 0;
    pointer-events: none;
}

/*------------------------------------------------------------------
  CONTAINER
-------------------------------------------------------------------*/
body .xb__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px 64px;   /* 20px top como pediste */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*------------------------------------------------------------------
  HEADER / PERFIL
-------------------------------------------------------------------*/
body .xb__head {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    text-align: center;
}

/* Avatar 122px con borde naranja */
body .xb__avatar {
    width: 122px !important;
    height: 122px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid #d38a67 !important;
    margin-bottom: 8px;
    flex-shrink: 0;
}
body .xb__avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Nombre — font-size:16px bold, mixto (nunca uppercase) */
body .xb__name,
body.uppercase-text .xb__name {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #d38a67 !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Descripción — font-size:16px regular */
body .xb__desc,
body.uppercase-text .xb__desc {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #d38a67 !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*------------------------------------------------------------------
  SOCIALES
-------------------------------------------------------------------*/
body .xb__socials {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}
body .xb__socials li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: none !important;
    line-height: 1 !important;
}
body .xb__socials li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: none !important;
    transition: opacity .2s !important;
}
body .xb__socials li a:hover { opacity: 0.7 !important; }
body .xb__socials svg {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
}

/*------------------------------------------------------------------
  WIDGETS CONTAINER
-------------------------------------------------------------------*/
body .xb__widgets {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body .xb__sep {
    display: block;
    width: 100%;
    height: 10px;
    line-height: 0;
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

/*------------------------------------------------------------------
  LINK CLASSIC — replica .link.link-classic del original Dooyu
-------------------------------------------------------------------*/
body .xb__link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 72px;
    padding: 10px 14px !important;
    background: rgba(31,31,32,0.8) !important;
    color: #d38a67 !important;
    outline: 1px solid #d38a67 !important;
    outline-offset: -1px !important;
    border-radius: clamp(0px, 20px, 30px) !important;
    margin-bottom: 1px !important;
    margin-top: 1px !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    gap: 12px;
    transition: opacity .2s, transform .15s;
    position: relative;
    overflow: hidden;
}
body .xb__link:hover {
    opacity: .88;
    transform: translateY(-1px);
}
body .xb__link--dashed {
    outline-style: dashed !important;
}

/* Thumbnail */
body .xb__link-thumb {
    flex-shrink: 0;
    width: 52px !important;
    height: 52px !important;
    border-radius: clamp(0px, 20px, 30px) !important;
    overflow: hidden;
}
body .xb__link-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: clamp(0px, 20px, 30px) !important;
}

/* Cuerpo de texto */
body .xb__link-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: transparent !important;
    color: #d38a67 !important;
    gap: 2px;
    min-width: 0;
}

body .xb__link-title,
body.uppercase-text .xb__link-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #d38a67 !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .xb__link-sub,
body.uppercase-text .xb__link-sub {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #d38a67 !important;
    opacity: .85;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Icono externo */
body .xb__link-ext {
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px;
    height: 24px;
    opacity: .7;
}
body .xb__link-ext svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #d38a67 !important;
    fill: none !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block !important;
}

/*------------------------------------------------------------------
  FEATURED CARD — replica .link.link-featured del original Dooyu
-------------------------------------------------------------------*/
body .xb__card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: rgba(31,31,32,1) !important;
    color: #d38a67 !important;
    border-radius: clamp(0px, clamp(0px, 100px, 30px), 20px) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative;
    transition: opacity .2s, transform .15s;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
body .xb__card:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* Imagen hero del featured */
body .xb__card-img {
    width: 100% !important;
    display: block;
    line-height: 0;
    overflow: hidden;
}
body .xb__card-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Icono ext flotante */
body .xb__card-ext {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 28px;
    height: 28px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(31,31,32,.55);
    border-radius: 6px;
    z-index: 2;
}
body .xb__card-ext svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #d38a67 !important;
    fill: none !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block !important;
}

/* Cuerpo inferior de la card */
body .xb__card-body {
    padding: 14px 16px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px;
    text-align: center !important;
    background: rgba(31,31,32,1) !important;
    color: #d38a67 !important;
}

body .xb__card-title,
body.uppercase-text .xb__card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #d38a67 !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .xb__card-desc,
body.uppercase-text .xb__card-desc {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    color: #d38a67 !important;
    opacity: .8;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*------------------------------------------------------------------
  ANIMACIONES — nombres únicos para no colisionar con Serano
-------------------------------------------------------------------*/
@keyframes xbBounce {
    0%   { opacity: 0; transform: scale(0.85) translateY(12px); }
    55%  { opacity: 1; transform: scale(1.04) translateY(-3px); }
    100% { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes xbFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes xbSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

body .xb-bounce { animation: xbBounce 0.5s ease both; }
body .xb-fade   { animation: xbFade   0.5s ease both; }
body .xb-slide  { animation: xbSlide  0.5s ease both; }

/*------------------------------------------------------------------
  RESPONSIVE
-------------------------------------------------------------------*/
@media (max-width: 768px) {
    body .xb__inner { padding: 20px 12px 48px; }
}
@media (max-width: 480px) {
    body .xb__avatar     { width: 96px !important; height: 96px !important; }
    body .xb__link-thumb { width: 44px !important; height: 44px !important; }
    body .xb__name       { font-size: 15px !important; }
    body .xb__desc       { font-size: 14px !important; }
}