/* ESTRUCTURA GENERAL */
body { 
    margin: 0; 
    font-family: Inter, sans-serif; 
    text-align: center; 
    padding-bottom: 20px;
}

/* CABECERA */
header.pro-cabecera {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-height: 75vh;
    position: relative;
    overflow: hidden;
}

header.pro-cabecera video,
header.pro-cabecera img.cabecera-img,
.cabecera-color {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* PERFIL CIRCULAR SOBRE CABECERA */
.perfil-wrapper {
    margin-top: -250px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.perfil-img {
    width: 500px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 50%;
    border: 3px solid #000000;
    background-size: cover;
    background-position: center;
}

h1 { 
    margin-top: 15px; 
    font-size: 40px; 
    white-space: pre-wrap; 
}
.botones { margin-top: 20px; }

/* BOTONES SOCIALES */
.btn-social {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    text-decoration: none;
}

/* ANIMACIONES POR VIEWPORT */
.btn-social, .btn-zoom {
    opacity: 0;
    transform: scale(0.2); /* más "desde la nada" */
    transition: transform 0.8s ease, opacity 0.8s ease; /* más lento y suave */
}

.btn-social.animated, .btn-zoom.animated {
    opacity: 1;
    transform: scale(1);
}

/* SLIDER */
.slider-container {
    margin: 40px auto;
    width: 80%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
    padding: 0;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* BORDES OPCIONALES SLIDER */
.solid-border { border: 3px solid #333; }
.shadow-border { box-shadow: 0 0 20px rgba(0,0,0,0.4); }
.no-border { border: none; box-shadow: none; }

/* REFERIDO */
.referido { margin-top: 25px; }
.referido a {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

/* CONTENEDORES (IGUALES) */
.contenedor-descripcion,
#preview-contenedor-cierre {
  width: 80%;
  margin: 12px auto;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* TEXTOS (IGUALES) */
.descripcion,
.cierre {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* RESPONSIVE */
@media (max-width: 940px) {
    header.pro-cabecera { aspect-ratio: 16 / 9; min-height: 200px; max-height: 60vh; }
    .perfil-wrapper { margin-top: -25vw; }
    .perfil-img { width: 50vw; height: 50vw; }
}

@media (max-width: 730px) {
    header.pro-cabecera { aspect-ratio: 16 / 9; min-height: 180px; max-height: 55vh; }
    .perfil-wrapper { margin-top: -20vw; }
    .perfil-img { width: 60vw; height: 60vw; }
}

@media (max-width: 430px) {
    header.pro-cabecera { aspect-ratio: 16 / 9; min-height: 160px; max-height: 50vh; }
    .perfil-wrapper { margin-top: -18vw; }
    .perfil-img { width: 70vw; height: 70vw; }
}