/*****************************************Pagina detalles de chico*******************************************************/
.body-detalles{
    margin-top: 100px;
}
/* Contenedor principal fijo */
.cardchicos {
    width: 1065px;
    height: 564px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #014375; /* 🔹 Borde agregado */
    border-radius: 8px;        /* opcional, para suavizar las esquinas */
}
/* 🔹 Cuando hay discapacidad */
.cardchicos.con-discapacidad {
    height: 620px; /* ajustá este valor */
}

/* Card interna */
.card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row; /* Imagen a la izquierda, texto a la derecha */
    align-items: center; /* centra los dos elementos en vertical dentro del contenedor */
    border: none !important;
    
    padding: 20px;
}
/* Imagen del chico */
.img-chico {
    width: 400px;
    height: 432px;   /* Ajustado */
    object-fit: cover;
    border-radius: 8px;
}

/* Contenedor de la imagen con overlay */
.image-container {
    position: relative;
    width: 400px;
    height: 432px;   /* Ajustado */
    margin-right: 30px;
}

.overlay {
    border-radius: 8px;
}


/* Flechas personalizadas con PNG */
.carousel-flechas-desktop {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 15px;
    z-index: 5;
  }
  
  .carousel-flecha-desktop {
    width: 40px;
    height: 40px;
    background-image: url('../imagenes/iconos/40x40_Desktop_FlechaAbajo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    border: none;
    cursor: pointer;
    background-color: #FFFFFF ;/* gris semi-transparente */
    border-radius: 50%; /* hace el fondo redondeado */
  }
  
  .carousel-flecha-desktop.izquierda {
    transform: rotate(90deg);
  }
  
  .carousel-flecha-desktop.derecha {
    transform: rotate(-90deg);
  }
/* Contenedor de indicadores debajo de la imagen */
.indicadores-circulo {
    margin-top: 10px;
    text-align: center;
}

/* Botones circulares */
.indicadores-circulo button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 4px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}
.indicadores-circulo button.active {
    background-color: #014375 !important;
}





/* Datos del chico */
.card-body_datos {
    width: 395px;
    height: 383px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* 🔹 Versión más alta */
.cardchicos.con-discapacidad .card-body_datos {
    height: 440px;
}
.nombre-chico {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Títulos */
.h4-datos {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Valores */
.valor-dato {
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

/* Fila de datos con grid */
.fila-datos {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dos columnas iguales */
    gap: 12px 20px; /* espacio entre filas y columnas */
    margin-bottom: 10px;
}

.dato-item {
    display: flex;
    flex-direction: column;
}

/* Botón principal */
.boton-informacion {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.btn-info-main {
    width: 395px;
    height: 48px;
    background-color: #014375;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-info-main:hover {
    background-color: #0360a0;
}

/* Botones secundarios */
.btns-secundarios {
    display: flex;
    gap: 10px;
}

.btn-secundario {
    background: none;
    border: none;
    color: #014375;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    font-weight: bold;
}

.btn-secundario:hover {
    text-decoration: underline;
}

.icono-btn {
    width: 32px;
    height: 32px;
    object-fit: contain;
}



/**** VER SI TENES QUE ELIMINAR ****/
/* Miniaturas */
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    margin-right: 5px;
}

.thumbnail:hover,
.thumbnail.active {
    border: 2px solid #014375;
}

/* Contenedor principal relativo para que el botón absoluto se posicione respecto a él */
.container {
    position: relative;
}

/* ya no necesitamos position absolute en el botón */
.btn-volver {
    display: inline-block;
    padding: 6px 12px;
    color: #014375;
    background-color: transparent;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-volver:hover {
    color: #fff;
    background-color: #014375;
}
.btn-volver-mobile{
    display: none;
}
.cardchicos-mobile {
    display: none;
}

/** MODAL COMPARTIR EN REDES SOCIALES **/

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  /* Caja del modal */
  .modal-box {
    background: linear-gradient(145deg, #ffffff, #f8f9fb);
    width: 90%;
    max-width: 420px;
    border-radius: 22px;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    box-shadow: 
      0 20px 40px rgba(0,0,0,0.15),
      0 5px 15px rgba(0,0,0,0.08);
    animation: modalIn .35s cubic-bezier(.17,.67,.36,1);
  }
  
  /* Animación entrada */
  @keyframes modalIn {
    from { transform: translateY(20px) scale(.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
  
  /* Botón cerrar */
  .modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    border: none;
    background: #f1f1f1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  
  .modal-close:hover {
    background: #e2e2e2;
    transform: rotate(90deg);
  }
  
  /* Título */
  .modal-box h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
  }
  
  .iconos-redes-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap; /* para que en mobile bajen si no entran */
  }
  
  /* Iconos */
  .iconos-redes-modal .icon-redes {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
      0 6px 15px rgba(0,0,0,0.08);
    transition: 
      transform .25s ease,
      box-shadow .25s ease;
    cursor: pointer;
  }
  
  .iconos-redes-modal .icon-redes img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
  
  /* Hover efecto flotante */
  .iconos-redes-modal .icon-redes:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 
      0 12px 25px rgba(0,0,0,0.18);
  }
  
  /* Efecto al hacer click */
  .iconos-redes-modal .icon-redes:active {
    transform: scale(.95);
  }
  /* BOTÓN COPIAR ENLACE */

.btn-copiar {
    margin-top: 20px;
    background: none;
    border: none;
    color: #007bff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
  }
  
  .btn-copiar:hover {
    opacity: .7;
    transform: translateY(-2px);
  }
  
  .btn-copiar:active {
    transform: scale(.95);
  }

/* ==== VERSIÓN RESPONSIVE (MOBILE) ==== */
@media (max-width: 768px) {
   .container{
    display: none;
   }

   .body-detalles{
    margin-top: 70px !important;
   }
 /* Card Mobile */
.cardchicos-mobile {
    width: 90%; /* ancho relativo al 90% de la pantalla */
    min-height: 727px; /* ✅ base flexible */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* centra elementos hijos horizontalmente */
    padding: 16px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #014375;
}
.cardchicos-mobile.con-discapacidad {
    min-height: 800px;

}
.cardchicos-mobile {
    padding-bottom: 24px;
}
/* Nombre */
.nombre-chico-mobile {
    font-size: 24px;
    font-weight: 700;
    color: #014375;
    margin-bottom: 16px;
    text-align: center;
}

/* Contenedor de imagen */
.image-container-mobile {
    width: 90%; /* ancho relativo a la card */
    max-width: 328px;
    height: 288px; /* alto fijo */
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    margin: 0 auto;
    justify-content: center; /* centra la imagen horizontalmente */
    align-items: center; /* opcional si quieres centrar verticalmente */
    position: relative;
}

/* Imagen del chico */
.img-chico-mobile {
    width: 100%;
    max-width: 288px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

/* Flechas del carrusel */
.carousel-flechas-mobile {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 12px;
    z-index: 5;
    
}

.carousel-flecha-mobile {
    width: 36px;
    height: 36px;
    background-image: url('../imagenes/iconos/40x40_Desktop_FlechaAbajo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    
}

.carousel-flecha-mobile.izquierda {
    transform: rotate(90deg);
}

.carousel-flecha-mobile.derecha {
    transform: rotate(-90deg);
}

/* Indicadores */
.indicadores-circulo-mobile {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.indicadores-circulo-mobile button {
    width: 8px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
}

.indicadores-circulo-mobile button.active {
    background-color: #014375;
}

/* Datos Mobile */
.datos-mobile {
    
    display: grid;
    grid-template-columns: 1fr 1fr; /* dos columnas iguales */
    column-gap: 12px; /* espacio entre columnas */
    row-gap: 24px;    /* espacio entre filas */
    margin: 15px auto 30px auto; /* centra el grid horizontalmente */
   
}

.dato-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* centra horizontalmente */
    text-align: left;
    white-space: nowrap;
    
}

.dato-item-mobile h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.dato-item-mobile p {
    font-size: 13px;
    color: #333;
    margin: 0;
}

/* Botón principal */
.btn-info-main-mobile {
    width: 80%;
    max-width: 288px;
    height: 40px;
    line-height: 40px;
    background-color: #014375;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
}

/* Botones secundarios */
.btns-secundarios-mobile {
    display: flex;
    gap: 8px;
    justify-content: center; /* centra los botones */
    width: 100%;
}

.btn-secundario-mobile {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    border: none;
    background-color: #fff;
    color: #014375;
    font-weight: 500;
    padding: 8px;
    white-space: nowrap;
}

.btn-secundario-mobile img {
    width: 32px;
    height: 32px;
}

/* Botón volver */
.btn-volver-mobile {
    display: inline-block;
    margin-left: 15px;
    color: #014375;
    background-color: transparent;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-volver-mobile:hover {
    color: #fff;
    background-color: #014375;
}
}