.profile-section{
  text-align:center;
  margin-top:10px;
}

.profile-pic{
  width:180px;
  height:180px;
  margin:0 auto 18px auto;
  border-radius:50%;
  overflow:hidden;
  border:4px solid rgba(56,189,248,.9);
  box-shadow:
    0 15px 35px rgba(0,0,0,.35),
    0 0 0 6px rgba(56,189,248,.15);
  transition:.35s ease;
  position:relative;
}

.profile-pic img{
  width:100%;
  height:100%;
  object-fit:cover; /* 🔥 esto la hace redonda real */
  display:block;
  border-radius:50%;
}

/* ✨ hover premium */
.profile-pic:hover{
  transform:scale(1.05);
  box-shadow:
    0 25px 60px rgba(0,0,0,.45),
    0 0 0 8px rgba(56,189,248,.25);
}

/* ===== NOMBRE PERFIL ===== */
.profile-name{
  font-size:20px;
  font-weight:700;
  margin-top:6px;
  opacity:.9;
}

/* ============================= */
/* 🌈 FONDO GLOBAL PREMIUM */
/* ============================= */
body{
  background:
    radial-gradient(circle at 20% 20%, #0ea5e9 0%, transparent 40%),
    radial-gradient(circle at 80% 0%, #6366f1 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, #22c55e 0%, transparent 40%),
    #020617;
  color:#ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ============================= */
/* 🧊 TARJETAS MÁRMOL CUADRADAS */
/* ============================= */
.card,
.card-pro{
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.12),
      rgba(255,255,255,.03));
  backdrop-filter: blur(14px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  padding:28px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.25);
  position:relative;
}

/* efecto mármol */
.card::after,
.card-pro::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 2px,
      transparent 2px,
      transparent 6px
    );
  pointer-events:none;
  border-radius:inherit;
}

/* ============================= */
/* 🔥 BOTONES BIEN CHIMBA */
/* ============================= */
.btn-primary{
  background: linear-gradient(135deg,#22c55e,#0ea5e9,#6366f1);
  background-size: 200% 200%;
  color:white;
  padding:14px 26px;
  border-radius:14px;
  font-weight:800;
  text-decoration:none;
  letter-spacing:.3px;
  transition:.35s;
  box-shadow:0 12px 30px rgba(14,165,233,.45);
}

.btn-primary:hover{
  transform:translateY(-3px) scale(1.03);
  background-position: right center;
  box-shadow:0 25px 60px rgba(14,165,233,.65);
}

/* botón secundario pro */
.btn-ghost{
  border:2px solid rgba(255,255,255,.35);
  padding:13px 26px;
  border-radius:14px;
  text-decoration:none;
  color:white;
  font-weight:700;
  backdrop-filter: blur(6px);
  transition:.25s;
}

.btn-ghost:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-2px);
}

/* ============================= */
/* 🌟 HERO MÁS VIVO */
/* ============================= */
.hero{
  position:relative;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-100px;
  background: radial-gradient(circle, rgba(14,165,233,.25), transparent 60%);
  z-index:-1;
  filter: blur(60px);
}

/* ============================= */
/* 💎 FOTO PERFIL ULTRA PRO */
/* ============================= */
.profile-pic{
  width:190px;
  height:190px;
  margin:0 auto 18px auto;
  border-radius:50%;
  overflow:hidden;
  border:4px solid rgba(56,189,248,.9);
  box-shadow:
    0 20px 60px rgba(0,0,0,.55),
    0 0 0 8px rgba(56,189,248,.18);
  transition:.35s;
}

.profile-pic img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.profile-pic:hover{
  transform:scale(1.06) rotate(.5deg);
}

/* ============================= */
/* ✨ TÍTULOS MÁS PRO */
/* ============================= */
.hero-title{
  background: linear-gradient(90deg,#38bdf8,#22c55e,#6366f1);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:800;
}

/* ============================= */
/* 📦 BAJAR LA TARJETA DE HISTORIA */
/* ============================= */
.container{
  margin-top: 70px; /* empuja la tarjeta hacia abajo */
}

/* en pantallas grandes se baja más */
@media (min-width:900px){
  .container{
    margin-top: 100px;
  }
}

/* ============================= */
/* 🔥 TODOS LOS BOTONES IGUALES */
/* ============================= */
button,
input[type="submit"],
.btn,
.nav a.button{
  background: linear-gradient(135deg,#22c55e,#0ea5e9,#6366f1);
  background-size: 200% 200%;
  color:white;
  padding:14px 26px;
  border-radius:14px;
  font-weight:800;
  border:none;
  cursor:pointer;
  transition:.35s;
  box-shadow:0 12px 30px rgba(14,165,233,.45);
}

button:hover,
input[type="submit"]:hover{
  transform:translateY(-3px) scale(1.03);
  background-position:right center;
  box-shadow:0 25px 60px rgba(14,165,233,.65);
}

/* ============================= */
/* 🎯 HERO BUTTONS MÁS ABAJO */
/* ============================= */
.hero-buttons{
  margin-top: 32px;
  margin-bottom: 10px;
}

/* ============================= */
/* 📱 CENTRAR BIEN EN MÓVIL */
/* ============================= */
@media (max-width:600px){
  .hero-buttons{
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a{
    width: 220px;
    text-align:center;
  }
}

/* ============================= */
/* 🔥 NAV COMO BOTONES PRO */
/* ============================= */
.nav a{
  position: relative;
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  color:white;
  transition:.25s;
}

.nav a:hover{
  background:linear-gradient(135deg,#22c55e,#0ea5e9);
  box-shadow:0 8px 25px rgba(14,165,233,.45);
  transform:translateY(-1px);
}

/* ============================= */
/* 🔥 NAV PREMIUM */
/* ============================= */
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* botones del menú */
.nav a{
  padding:10px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  color:white;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  transition:.25s;
  position:relative;
}

/* hover chimba */
.nav a:hover{
  background:linear-gradient(135deg,#22c55e,#0ea5e9,#6366f1);
  box-shadow:0 10px 30px rgba(14,165,233,.45);
  transform:translateY(-2px);
}

/* botón activo (opcional pero pro) */
.nav a:active{
  transform:scale(.97);
}

@media (max-width:700px){
  .header-inner{
    flex-direction:column;
    gap:12px;
  }

  .nav{
    justify-content:center;
  }
}

/* ============================= */
/* 💥 FIX FONDO FULL */
/* ============================= */
html, body{
  height:100%;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* el main crece y empuja el footer */
main{
  flex:1;
}

/* contenedor más ancho */
.container{
  width:100%;
  max-width:1100px;
  margin:auto;
}

/* que la tarjeta no se corte */
.card,
.card-pro{
  width:100%;
}

/* grid galería pro */
.galeria-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px;
  margin-top:20px;
}

/* ===== FIX FONDO FULL SIN CAMBIAR TU DISEÑO ===== */

html, body{
  height:100%;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* hace que el contenido empuje el footer */
main{
  flex:1;
}

/* evita espacio raro abajo */
.footer{
  margin-top:auto;
}

/* ===== bajar la card de la historiaa ===== */
.container{
  margin-top: 60px; /* ajusta si quieres más abajo */
}

/* ===== FIX FULL HEIGHT COMUNIDAD ===== */
main{
  min-height: calc(100vh - 140px); /* ocupa toda la pantalla */
}

/* sección de subir */
.container{
  padding-bottom: 80px; /* evita que se corte abajo */
}

/* ===== UPLOAD SECTION ===== */
.upload-section{
  padding:80px 20px;
  display:flex;
  justify-content:center;
}

.upload-card{
  width:100%;
  max-width:900px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(14px);
  border-radius:24px;
  padding:40px 28px;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}

/* título */
.upload-title{
  text-align:center;
  font-size:28px;
  margin-bottom:28px;
  font-weight:700;
}

/* FORM GRID */
.upload-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

/* grupos */
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* ancho completo */
.full{
  grid-column:1 / -1;
}

/* inputs */
.form-group input,
.form-group textarea{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.25);
  color:white;
  font-size:14px;
  outline:none;
  transition:.25s;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color:#38bdf8;
  box-shadow:0 0 0 3px rgba(56,189,248,.25);
}

/* RESPONSIVE */
@media (max-width:700px){
  .upload-form{
    grid-template-columns:1fr;
  }
}

/* ===== GALERIA GRID ===== */
.galeria-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px;
  margin-top:20px;
}

.galeria-card{
  background:rgba(255,255,255,.06);
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
}

.galeria-card img,
.galeria-card video{
  width:100%;
  display:block;
}

.galeria-info{
  padding:10px;
  font-size:14px;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0b0f1a;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
}

/* CONTENEDOR PRINCIPAL */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* TARJETA */
.card {
  background: #111827;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* TITULOS */
.card h2 {
  margin-bottom: 15px;
}

/* INPUT FILE */
.upload-box {
  border: 2px dashed #374151;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* BOTONES */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  background: #2563eb;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.btn:hover {
  background: #1d4ed8;
}

/* LOADER */
.loader {
  display: none;
  margin-top: 15px;
  text-align: center;
  color: #60a5fa;
  font-weight: bold;
}

/* ===== FONDO GALERÍA COMPLETO ===== */
body {
  background:
    radial-gradient(circle at 20% 20%, #16a34a 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #22c55e 0%, transparent 40%),
    linear-gradient(135deg, #0f172a, #020617);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ===== CONTENEDOR GALERÍA ===== */
.container {
  padding-bottom: 80px;
}

/* ===== CARD PRINCIPAL (como tu imagen) ===== */
.card,
.card-pro {
  background: linear-gradient(
      135deg,
      rgba(34,197,94,.18),
      rgba(59,130,246,.12)
    );
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(0,0,0,.45);
}

/* ===== GRID GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

/* ===== TARJETA DE POST ===== */
.post-card {
  background: rgba(2,6,23,.75);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  transition: .25s;
  border: 1px solid rgba(255,255,255,.08);
}

.post-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(34,197,94,.25);
}

/* ===== IMAGEN ===== */
.post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

/* ===== TEXTO ===== */
.post-card strong {
  display: block;
  margin-top: 6px;
}

.post-card small {
  opacity: .7;
}

/* ===== FOOTER PEGADO ABAJO ===== */
.footer {
  margin-top: 60px;
}

/* ===== BOTÓN FLOTANTE (si lo usas) ===== */
.fab,
.refresh-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(34,197,94,.45);
  z-index: 999;
}
/* GALERIA 
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}*/

/*.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}*/

/* EVITA ESPACIO AZUL */
html, body {
  min-height: 100%;
}
/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, Arial, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.header-inner,
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ===== LOGO ===== */
.logo {
  font-size: 28px;
  font-weight: 800;
  color: white;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-weight: 600;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}

.nav a:hover {
  background: white;
  color: #16a34a;
  transform: translateY(-2px);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 60px 20px 20px;
}

/* ===== FOTO PERFIL ===== */
.profile-pic {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #22c55e;
  box-shadow: 0 15px 40px rgba(34,197,94,.4);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BOTONES ===== */
.btn-primary {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34,197,94,.45);
}

.btn-ghost {
  background: transparent;
  border: 2px solid #22c55e;
  color: #22c55e;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: .25s;
}

.btn-ghost:hover {
  background: #22c55e;
  color: white;
}

/* ===== CARD MÁRMOL ===== */
.card-pro {
  background:
    linear-gradient(135deg, #ffffff10, #ffffff05),
    url('https://www.transparenttextures.com/patterns/marble.png');
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  margin-top: 60px;
}

/* ===== UPLOAD ===== */
.upload-section {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.upload-card {
  width: 100%;
  max-width: 600px;
  background: #111827;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.upload-title {
  text-align: center;
  margin-bottom: 20px;
}

.upload-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020617;
  color: white;
}

.full {
  width: 100%;
}

/* ===== GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.post-card {
  background: #111827;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

.post-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  background: #020617;
  color: #9ca3af;
}

/* ===== FORM GRID ORDENADO ===== */
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
  margin-top:20px;
}

/* ===== CAMPOS ===== */
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.form-group.full{
  grid-column:1 / -1;
}

/* ===== INPUTS PRO ===== */
.form-group input,
.form-group textarea{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:12px;
  color:white;
  outline:none;
  transition:.25s;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color:#22c55e;
  box-shadow:0 0 0 2px rgba(34,197,94,.25);
}

/* ===== MENSAJE ===== */
.msg{
  margin-top:12px;
  text-align:center;
  font-weight:600;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width:700px){
  .form-grid{
    grid-template-columns: 1fr;
  }
}

/* 🔍 VISOR */
.visor {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.visor img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 12px;
}

#cerrarVisor {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}