/* homecss.css */

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

/* —— BODY —— */
body {
  background-color: #F1EDEC;
  width: auto;
  font-family: 'Roboto', sans-serif;
  max-width: 100%;
  overflow: hidden;
}

/* —— INTRO —— */
.intro {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #EAAEC6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* —— HEADER —— */
.main-header {
  width: 100%;
  height: 80px;
  background-color: #F1EDEC;
  display: none;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateZ(0);
}

.iso-header {
  position: absolute;
  top: 19.28px;
  left: 50px;
  height: 41.44px;
  width: auto;
}

.menu-links {
  position: relative;
  width: 100%;
  height: 100%;
}

.menu-links a {
  position: absolute;
  top: 30px;
  font-size: 16px;
  font-weight: 400;
  color: #26262C;
  text-decoration: none;
  white-space: nowrap;
  height: 15px;
}

.menu-links a:nth-child(1) { left: 280px; }
.menu-links a:nth-child(2) { left: 419px; }
.menu-links a:nth-child(3) { left: 538px; }
.menu-links a:nth-child(4) { left: 686px; }

.menu-links a:hover {
  text-decoration: none;
}

/* LOGO ANIMADO */
.logo-container {
  animation: logoPop 0.6s ease-out forwards, logoExpand 1s ease-in forwards;
  animation-delay: 0.5s, 1.5s;
  transform-origin: center 60%;
  opacity: 0;
}

.logo-container img {
  width: 200px;
  display: block;
}

@keyframes logoPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes logoExpand {
  0% { transform: scale(1); }
  100% { transform: scale(100); }
}

/* TEXTOS INICIALES */
.text {
  color: #EAAEC6;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -2.4px; 
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  line-height: 1;
}

@keyframes textPop {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.text1 {
  animation: textPop 1s ease-out forwards;
  animation-delay: 2.5s;
  top: 9%;
  left: 32%;
  transform: translateX(-50%);
}

.text2 {
  animation: textPop 1s ease-out forwards;
  animation-delay: 3.2s;
  top: 16%;
  left: 45%;
  transform: translateX(-50%);
  font-style: italic;
  padding-right: 16px;  
  padding-left: 16px;   
  white-space: nowrap;  
  overflow: visible;    
}

/* TELÉFONO */
.phone {
  position: absolute;
  top: 30%;
  left: 37%;
  width: 384px;
  height: 319px;
  object-fit: cover;                /* ajusta la imagen al contenedor */
  transform: translate(-50%, -50%) scaleX(-1);
  opacity: 0;
  animation: 
    phoneFadeIn 0.6s ease-out forwards 4s,
    phonePulse 1s ease-in-out infinite 3s;
  aspect-ratio: 384/319;
}

@keyframes phoneFadeIn {
  from { opacity: 0; transform: scaleX(-1) scale(0.9); }
  to   { opacity: 1; transform: scaleX(-1) scale(1); }
}

@keyframes phonePulse {
  0%   { transform: scaleX(-1) scale(1); }
  50%  { transform: scaleX(-1) scale(1.05); }
  100% { transform: scaleX(-1) scale(1); }
}

/* BOTONES */
.button-container {
  position: absolute;
  top: 78%;
  left: 38%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: textPop 1s ease-out forwards;
  animation-delay: 4.7s;
  z-index: 10;
}

.btn {
  width: 130px;
  height: 46px;
  border-radius: 20px;
  border: 2px solid #EAAEC6;
  background-color: #F1EDEC;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  color: #EAAEC6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.atender:hover {
  background-color: #EAAEC6;
  color: #F1EDEC;
}

/* HOME (GRADIENTE + NOISE) */
.home {
  width: 100%;
  min-height: 90vh;
  background: linear-gradient(45deg, #EAAEC6, #F3BDD2, #F1EDEC, #F3BDD2, #E080A7);
  background-size: 800% 800%;
  animation: gradientMove 8s ease-in-out infinite;
  position: relative;  /* para overlay */
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image: url("assets/noise.png");
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: 1;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.home-text1, .home-text2 {
  position: absolute;
  color: #26262C;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -3.2px;
  opacity: 0;
  animation: textPop 1s ease-out forwards;
}

.home-text1 {
  top: 40%;
  left: 24%;
  animation-delay: 0.5s;
}

.home-text2 {
  top: 50%;
  left: 30%;
  font-style: italic;
  animation-delay: 1.2s;
  overflow: hidden;
}

.palabra-wrapper {
  display: inline-block;
  height: 90px;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
  min-width: 500px; 
}

.palabra-container {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.palabra {
  display: block; 
  font-size: 80px;
  font-style: italic;
  font-weight: 700;
  line-height: 90px;
  color: #26262C;
  height: 90px;
  text-align: left; 
}

.siguiente {
  opacity: 0;
}

.scroll-text {
  max-width: 100%;
  text-align: center;
  position: absolute;           
  bottom: 30%;                
  left: 40%;          
  transform: translateX(-50%);
  color: #B398A6;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 10px;
  padding-left: 10px;
  opacity: 0;                 
  animation:
    textPop 0.8s ease-out forwards 4s,      
    scrollPulse 1.5s ease-in-out infinite 2s; 
  z-index: 2;                  
}

@keyframes scrollPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* LANDING */
.landing {
  position: relative;
  z-index: 1;
  display: none;                
  flex-direction: column;      
  justify-content: flex-start;  
  align-items: center;        
  width: 100%;
  min-height: 100vh;
  background-color: #F1EDEC;
  padding: 80px 0;
}

.landing-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  padding: 0 20px;
  position: relative;  /* para las flores */
}

.polaroid-wrapper {
  width: 386px;
  height: 462.194px;
  flex-shrink: 0;
  transform-origin: top center;
  animation: swing 2.5s ease-in-out infinite;
}

@keyframes swing {
  0% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}

.polaroid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-texto {
  width: 434px;
  flex-shrink: 0;
  color: #26262C;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Título: hola soy cami */
.titulo {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 2px;
}

/* Subtítulo en cursiva Light */
.subtitulo {
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 22px;
  margin-bottom: 18px;
}

/* Párrafos */
.intro-principal {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}
.intro-extra {
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

/* Flores decorativas */
.flor {
  position: absolute;
  pointer-events: none;
  transform-origin: center center;
}

/* pequeña arriba-izquierda */
.flor1 {
  top: 10px;
  left: -50px;
  width: 105px;
  height: 105px;
}
/* grande arriba-derecha */
.flor2 {
  top: 0;
  right: -80px;
  width: 162px;
  height: 162px;
}
/* grande abajo-izquierda */
.flor3 {
  bottom: 10px;
  left: -40px;
  width: 162px;
  height: 162px;
}
/* pequeña abajo-derecha */
.flor4 {
  bottom: 20px;
  right: -20px;
  width: 105px;
  height: 105px;
}

/* Animación de entrada */
.hidden {
  opacity: 0;
  transform: translateY(50px);  
}

.visible {
  /* hacemos aparecer con “popUp” */
  animation: popUp 0.6s ease-out forwards;
}

/* Definimos la animación pop-up */
@keyframes popUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reiniciamos .hidden para solo ocultar sin animar transform */
.landing-content.hidden {
  opacity: 0;
  transform: none; /* lo controlará la animación */
}

/* Animación para flores (sólo opacidad) */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Polaroid: pop-up + swing simultáneos */
.landing-content.visible .polaroid-wrapper {
  opacity: 0;
  animation:
    popUp 0.6s ease-out forwards 0.2s,  /* pop-up al aparecer */
    swing 2.5s ease-in-out infinite;    /* swing indefinido */
}

/* Texto de la landing: sólo popUp */
.landing-content.visible .landing-texto {
  opacity: 0;
  animation: popUp 0.6s ease-out forwards 0.4s;
}

/* Flores: fadeIn para aparecer, rotación mantiene el JS */
.landing-content.visible .flor1 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards 0.6s;
}
.landing-content.visible .flor2 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards 0.7s;
}
.landing-content.visible .flor3 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards 0.8s;
}
.landing-content.visible .flor4 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards 0.9s;
}

/* Contenedor principal en esquina superior derecha */
#control-musica {
  position: fixed;
  top: 12%;      /* ajusta según necesites */
  right: 2%;    /* ajusta según necesites */
  width: 120px;    /* ancho total del conjunto (jugá con el tamaño) */
  height: 120px;   /* alto total del conjunto */
  cursor: pointer;
  z-index: 100;   /* para que esté por encima de contenidos */
}

/* El PNG de la base del reproductor */
#control-musica .cd-player {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* que no interfiera con el click */
}

/* El PNG del CD giratorio */
#control-musica #cd {
  position: absolute;
  top: 50%; 
  left: 50%;
  width: 65%;    /* tamaño del CD respecto al contenedor */
  height: 65%;
  transform: translate(-50%, -50%) rotate(0deg);
  pointer-events: none; /* el click recae en el contenedor padre */
  /* por defecto, sin animación; la clase .rotando la activará */
}

/* Definimos la animación de rotación */
@keyframes girar {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cuando tenga esta clase, hará spin infinito */
#control-musica #cd.rotando {
  animation: girar 3s linear infinite; /* 3s por vuelta, puedes cambiar la duración */
}

/* ---------- CONTROL DE MÚSICA OCULTO POR DEFECTO ---------- */
#control-musica {
  display: none; /* ya no se ve hasta que lo mostremos desde JS */
}

.cursor-flor-clone {
  position: absolute;
  width: 120px; /* tamaño más grande */
  height: auto;
  pointer-events: none;
  z-index: 50;
  opacity: 1;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.divisor {
  width: 100%;
  text-align: center;
  margin-top: 120px;
}

.divisor img {
  width: auto;
  max-width: 1200px; /* o lo que necesites */
  height: auto;
  display: inline-block;
  opacity: 0.8;
}

/* ─── SECCIÓN MIS PROYECTOS ─── */
.proyectos {
  background-color: #F1EDEC; /* o el color que prefieras */
}

.proyectos .proyectos-title {
  margin-top: 1%; /* Ajusta este valor según el espacio que quieras debajo del texto anterior */
  text-align: left;      /* alinea todo a la izquierda */
  padding-left: 15%;    /* misma separación que usás en el grid */
  margin-bottom: -1%;  /* espacio entre título y grilla */
}

.proyectos-line1,
.proyectos-line2 {
  color: #26262C;
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -2.4px;
}

.proyectos-line1 {
  font-style: normal;
  margin-bottom: -10px;
}

.proyectos-line2 {
  font-style: italic;
  margin-left: 50px; /* apenas defasada hacia la derecha */
}

/* Grilla 3×2 centrada */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;                /* espacio entre sobres */
  max-width: 1100px;
  margin: 0 auto 80px;      /* centra y deja un margen inferior */
  padding: 0 20px;          /* espacio lateral */
}

.proyecto-item {
  text-align: center;       /* imagen + texto centrados */
}

.proyecto-item img {
  width: 220px;             /* ajústalo al tamaño de tus PNG */
  height: auto;
  display: block;
  margin: 0 auto;
  animation: beat 1s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.proyecto-item .proyecto-caption {
  text-align: left;      
  padding-left: 20%; 
  margin-top: 8px; 
  font-size: 16px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
}

.proyecto-caption .heart {
  font-size: 18px;
  -webkit-text-stroke: 1px #26262C;
  -webkit-text-fill-color: transparent;
  transition: -webkit-text-fill-color 0.3s ease, 
              -webkit-text-stroke-color 0.3s ease;
  user-select: none;
  cursor: default;
}

.proyecto-caption .heart:hover {
  -webkit-text-fill-color: #EAAEC6;
  -webkit-text-stroke-color: #EAAEC6;
}


/* mini-sección CONTACTO */
.contacta-mini-seccion {
  padding: 60px 20px;
  background-color: #F1EDEC; /* mismo fondo que tus proyectos */
}

.contacta-mini-seccion .contacto-title {
  margin-top: 1%; /* Ajusta este valor según el espacio que quieras debajo del texto anterior */
  text-align: left;      /* alinea todo a la izquierda */
  padding-left: 15%;    /* misma separación que usás en el grid */
  margin-bottom: 3%;
}

.contacto-line1,
.contacto-line2 {
  color: #26262C;
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -2.4px;
}

.contacto-line1 {
  font-style: normal;
  margin-bottom: -10px;
}

.contacto-line2 {
  font-style: italic;
  margin-left: 70px; /* apenas defasada hacia la derecha */
}

.contact-btn-container {
  width: 100%;   
  display: flex;
  justify-content: center; 
  margin-top: 20px;
}

.contact-btn-container a {
  text-decoration: none;   /* quita el subrayado */
}

.contact-btn-container .btn {
  width: auto; 
  padding: 0 40px;
  height: 46px;
  text-align: center;
}

/* ─── DIVISOR ANIMADO ─── */

/* De -50% → 0 para mover hacia la derecha */
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.divisor-animado {
  width: 100vw;
  height: 50px;
  background-color: #EAAEC6;
  overflow: hidden;
  position: relative;
  margin-top: 60px;
}

.marquee {
  display: flex;
  width: 200vw;                      /* dos pantallas */
  height: 100%;
  animation: scroll-right 40s linear infinite;
}

.track {
  flex: 0 0 50%;                     /* cada track = 100 vw */
  display: flex;
  align-items: center;
  white-space: nowrap;

  /* Propiedades tipográficas */
  color: #F1EDEC;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.72px;

  /* Separa las frases entre sí, no al inicio */
  padding-right: 2rem;
}

/* POSTALES GIRATORIAS */

/* Contenedor 3D */
.card-container {
  perspective: 1000px;
  width: 45%;       /* ajústalo al ancho deseado */
  margin: 0 auto;
}
.card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.card__face {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  backface-visibility: hidden;
}
.card__face--back {
  transform: rotateY(180deg);
}
/* Clase que aplica el giro */
.card.flipped {
  transform: rotateY(180deg);
}

/* Espaciados */
.postales-container {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 80px;      /* elimina ese 600px que lo saca de pantalla */
}

.contact-btn-container {
  margin-top: 34%;
  margin-bottom: 0px; 
  position: relative;      /* lo convierte en elemento posicionado */
  z-index: 2;              /* más alto que tus imágenes absolutas */
}

/* ========== FOOTER ========== */

.site-footer {
  width: 100%;
  height: 631px;
  max-width: none;
  background-color: #EAAEC6;  /* tu rosa */
  margin: 0;             /* lo centra en pantallas más grandes */
  padding: 0;                 
  position: relative;         /* para que los hijos se posicionen relativo a este */
}

.footer-logo {
  display: block;      /* asegúrate de que esté visible */
  position: absolute;
  bottom: 0;           /* pegado al borde inferior */
  left: 0;
  width: 100%;         /* ocupa el 100% del ancho del footer (1440px) */
  height: auto;
  object-fit: cover;   /* opcional, para que escale bien */
  pointer-events: none;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  padding-left: 150px;    
  padding-top: 100px; 
  gap: 60px;            
}

/* Navegación vertical con separador */
.footer-nav {
  color: #F1EDEC;
  font-family: 'Roboto', sans-serif;display: flex;
  font-size: 16px;
  font-weight: 500;
  flex-direction: column;
  gap: 16px;                    /* espacio entre links */
  border-right: 1px solid #F1EDEC;
  padding-right: 60px;
  position: relative;
  z-index: 1;
}

.footer-nav a {
  color: #F1EDEC;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

/* Iconos de redes en fila */
.footer-social {
  align-self: flex-end;
  display: flex;
  gap: 24px;
  transform: translateY(-32px);
}

.footer-social svg {
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.footer-social svg:hover {
  transform: scale(1.1);
}

.footer-nav a:hover {
  color: #3A2117;
}

.menu-links a:hover {
 color: #EAAEC6;	
}

html {
  scroll-behavior: smooth;      /* opcional: suaviza el scroll */
}
#sobremi, 
#portfolio, 
#contacto {
  scroll-margin-top: 100px;     /* deja 100px de margen al hacer scroll */
}

/* Al hacerse visible: aparece y sube a su posición */
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── DIVISOR INTERACTIVO: CORAZÓN ─── */
.interactive-divider {
  position: relative;
  width: 100%;
  height: 60px;        /* suficiente para que se vean los puntos */
  overflow: hidden;
  margin-top: 7%;
  margin-bottom: -3%;
}

.dots {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 24px;
  background-image: radial-gradient(circle at center, #EAAEC6 4px, transparent 4px);
  background-size: 32px 32px;
  background-repeat: repeat-x;
  transform: translateY(-50%);
  animation: dots-move 12s linear infinite;
}

@keyframes dots-move {
  from { transform: translateX(0)    translateY(-50%); }
  to   { transform: translateX(-50%) translateY(-50%); }
}

/* El círculo central que gira al clic */
.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #EAAEC6;
  color: white;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.6s ease;
  z-index: 10;
}
.center-circle.rotate {
  transform: translate(-50%, -50%) rotate(360deg);
}

/* ——— POP-UP OVERLAY ——— */
#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popup-overlay.visible {
  display: flex;
}

/* Contenedor principal */
#popup-container {
  width: 600px;
  height: 600px;
  border-radius: 50px;
  border: 2px solid #EAAEC6;
  background: #F1EDEC;
  position: relative;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 6%;
  overflow: visible;
}

/* Botón cerrar */
#popup-close {
  position: absolute;
  top: -1%;
  right: -1%;
  width: 40px;               /* diámetro del círculo */
  height: 40px;
  padding: 0;                /* que no añada espacio extra */
  border-radius: 50%;        /* lo convierte en círculo */
  background-color: #EAAEC6; /* tu rosa principal */
  border: none;
  color: #F1EDEC;            /* el blanco hueso que usas */
  font-size: 20px;           /* tamaño de la “✕” */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;   /* centra la cruz dentro */
  cursor: pointer;
  transition: transform 0.2s;
}

#popup-close:hover {
  transform: scale(1.1);
}

/* Grid de items */
.popup-item {
  background: #ddd;        /* placeholder, quita o reemplaza */
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Tamaños exactos para cada bloque */
.popup-item-1 { width: 312px; height: 200px; } 
.popup-item-2 { width: 200px; height: 200px; } 
.popup-item-3 { width: 155px; height: 140px; }  
.popup-item-4 { width: 224px; height: 140px; } 
.popup-item-5 { width: 127px; height: 140px; }  
.popup-item-6 { width: 253px; height: 164px; } 
.popup-item-7 { width: 258px; height: 164px; } 

/* Imágenes/video dentro del item */
.popup-item img,
.popup-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-img-wrapper {
  width: 220px;       /* mismo ancho que .sobre-img */
  height: 220px;      /* altura del PNG cerrado a ese ancho */
  position: relative;
  overflow: visible;  /* deja que la versión abierta sobresalga arriba */
  margin: 0 auto;     /* centra el wrapper */
}

/* ——— Imagen anclada al fondo del wrapper ——— */
.sobre-img {
  position: absolute;
  bottom: 0;          /* línea de base fija */
  width: 100%;
  height: auto;
  animation: beat 1s ease-in-out infinite;
}

#popup-grid {
  width: 100%;            /* llena todo el ancho del popup */
  padding: 16px;          /* 16px arriba, derecha, abajo y izquierda */
  box-sizing: border-box; /* incluye el padding en ese 100% */
}

.popup-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;    /* separación vertical entre filas */
}

.popup-row:last-child {
  margin-bottom: 0;       /* quita el espacio extra tras la última fila */
}

.popup-row .popup-item {
  margin-right: 16px;     /* espacio horizontal entre items */
}

.popup-row .popup-item:last-child {
  margin-right: 0;
}