/* Estilos optimizados */
html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.4s ease, background 0.4s ease;
    background: rgba(0, 0, 0, 0.65); /* Oscuro translúcido */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


body.home header:not(.scrolled) {
    background-color: transparent; /* Transparente solo en la página de inicio y sin scroll */
}

header.scrolled {
    background: rgba(0, 0, 0, 0.75); /* Un poco más opaco al hacer scroll */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

header.hide {
    top: -100px;
}

/* NAV */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}
.nav-menu li a:hover {
    color: #b30f0f;
}

/* Botón Wishlist */
.nav-wishlist .wishlist-btn {
    background: linear-gradient(90deg, #b30f0f, #ff0000);
    padding: 8px 18px;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(179, 15, 15, 0.6);
    transition: all 0.3s ease;
}
.nav-wishlist .wishlist-btn:hover {
    background: linear-gradient(270deg, #b30f0f, #ff0000);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

/* Overlay para desenfoque */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 900;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}
.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}
.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    margin: 0;
    text-shadow: 0 0 20px rgba(179,15,15,0.8);
}
.hero-content p {
    font-size: 1.5rem;
    margin-top: 10px;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

/* SECCIONES FULL */
.full-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 10%;
    box-sizing: border-box;
}
.full-section.dark {
    background-color: #111;
}
.full-section.light {
    background-color: #f9f9f9;
    color: #000;
}

/* SECCIONES MID */
.mid-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 60px 10%;
    box-sizing: border-box;
}
.mid-section.dark {
    background-color: #111;
}
.mid-section.light {
    background-color: #f9f9f9;
    color: #000;
}


.section-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.section-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 40px;
}
.media-block {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.media-block.reverse {
    flex-direction: row-reverse;
}
.media-block iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.text-block {
    flex: 1;
}
.text-block h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.text-block p {
    font-size: 1rem;
    line-height: 1.5;
}
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px solid #b30f0f;
    color: #b30f0f;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: #b30f0f;
    color: #fff;
}
.btn-news {
    text-align:center; margin:10px; border-radius:8px;
}

/* GALERÍA (INDEX) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 20px;
}
.screenshot img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease;
}
.screenshot img:hover {
    transform: scale(1.05);
}

/* NOVEDADES (INDEX) */
.news-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* TARJETAS DE NOTICIAS Y SCREENSHOTS (COMÚN) */
.news-card, .screenshot-card {
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
}
.news-card:hover, .screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

/* IMÁGENES DE TARJETAS */
.news-card img, .screenshot-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card img {
    height: 180px;
}
.screenshot-card img {
    height: 200px;
}
.news-card:hover img, .screenshot-card:hover img {
    transform: scale(1.05);
}
.news-card.text-only {
    padding-top: 15px;
}

/* INFO DE TARJETAS */
.news-info, .screenshot-info, .video-info {
    padding: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
}
.news-info h4, .screenshot-info h4, .video-info h4 {
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
}
.news-info h4 {
    font-size: 1.2rem;
}
.screenshot-info h4, .video-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.news-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-info small, .screenshot-info .date, .video-info small {
    font-size: 0.8rem;
    color: #666;
}
.screenshot-info .package {
    font-size: 0.9rem;
    color: #b30f0f;
    margin-bottom: 5px;
}

/* GALERÍAS DE PÁGINAS INTERNAS */
.news-gallery, .screenshot-gallery, .video-gallery {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    /* overflow: hidden; <== Eliminado para que las sombras no se corten */
}

/* FILTRO SCREENSHOTS */
.screenshot-filter {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}
.screenshot-filter select {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}
.screenshot-filter select:hover {
    border-color: #b30f0f;
    box-shadow: 0 0 10px rgba(179, 15, 15, 0.3);
}

/* PAGINACIÓN */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}
.pagination button {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    background-color: #b30f0f;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.12s, opacity 0.2s;
}
.pagination button:not(:disabled):hover {
    background-color: #ff0000;
    transform: translateY(-1px);
}
.pagination button:disabled,
.pagination button[disabled],
.pagination button.is-disabled {
    background-color: #6b6b6b !important;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* PÁGINA ABOUT */
.about-container {
    max-width: 900px;
    margin: 0 auto;
}
.about-card {
    background-color: #fff;
    color: #000;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}
.about-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #b30f0f;
}
.about-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}
.about-card small {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

/* VIDEOS */
.video-card {
    background-color: #fff;
    color: #000;
    border-radius: 12px;
    overflow: hidden; /* Clave para que el video se adapte a los bordes redondeados */
    box-shadow: 0 0 12px rgba(0,0,0,0.2); /* Sombra centrada y más intensa */
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.video-card:hover {
    box-shadow: 0 0 35px rgba(0,0,0,0.45); /* Sombra más pronunciada y centrada en hover */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    /* No se necesita border-radius ni overflow aquí, la tarjeta padre lo controla */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Se elimina el overlay y sus efectos hover */
.video-overlay {
    display: none;
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-gallery.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px rgba(255,0,0,0.4); }
    25% { transform: scale(1.05); box-shadow: 0 0 10px rgba(255,0,0,0.7); }
    50% { transform: scale(1); box-shadow: 0 0 5px rgba(255,0,0,0.4); }
    75% { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,0,0,0.9); }
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
    }
    .nav-logo {
        order: 2;
    }
    .nav-wishlist {
        position: absolute;
        right: 5%;
        order: 3;
    }
    .hamburger {
        display: flex;
        position: absolute;
        left: 5%;
        order: 1;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -300px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.97);
        height: 100vh;
        width: 230px;
        padding: 60px 20px;
        gap: 12px;
        transition: left 0.4s ease;
        z-index: 1000;
    }
    .nav-menu li a {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 6px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        opacity: 0;
        transform: translateX(-15px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-menu.active li:nth-child(1) { transition-delay: 0.03s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.06s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.09s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.12s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.18s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.21s; }

    .nav-wishlist .wishlist-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        animation: heartbeat 2s infinite;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .nav-wishlist .wishlist-btn::before {
        content: "❤";
        font-size: 1rem;
        color: white;
    }
    .media-block {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .news-info, .screenshot-info, .video-info {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .news-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .video-gallery,
    .screenshot-gallery,
    .news-gallery {
        grid-template-columns: 1fr;
    }
    .section-content h2, h2 {
        font-size: 2.2rem !important;
        text-align: center;
    }
}

/* Efecto heartbeat2 para .FaviconLogo */
.FaviconLogo {
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    border: 0px solid #8b0000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.FaviconLogo:hover {
    border-color: #8b0000;
    animation: heartbeat2 1.2s ease-in-out infinite;
}

@keyframes heartbeat2 {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 10px rgba(139, 0, 0, 0.3),
            0 0 20px rgba(139, 0, 0, 0.1);
    }
    
    15% {
        transform: scale(1.05);
        box-shadow: 
            0 0 15px rgba(139, 0, 0, 0.6),
            0 0 30px rgba(139, 0, 0, 0.3),
            0 0 45px rgba(139, 0, 0, 0.1);
    }
    
    25% {
        transform: scale(1.01);
        box-shadow: 
            0 0 12px rgba(139, 0, 0, 0.4),
            0 0 25px rgba(139, 0, 0, 0.2);
    }
    
    35% {
        transform: scale(1.08);
        box-shadow: 
            0 0 20px rgba(139, 0, 0, 0.8),
            0 0 40px rgba(139, 0, 0, 0.4),
            0 0 60px rgba(139, 0, 0, 0.2);
    }
    
    50%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 10px rgba(139, 0, 0, 0.3),
            0 0 20px rgba(139, 0, 0, 0.1);
    }
}

.FaviconLogo:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    animation: pulse-ring 1.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0%, 50%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    15%, 35% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

/* ===== Footer ===== */
.site-footer {
    background-color: #111; /* oscuro */
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Roboto', sans-serif;
    border-top: 2px solid #b30f0f; /* línea roja superior */
}

.site-footer .footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Links principales */
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #b30f0f;
}

/* Redes sociales (PNG) */
.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-socials img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* blanco sobre negro */
    transition: transform 0.25s ease, filter 0.25s ease;
}
.footer-socials a:hover img {
    transform: scale(1.2);
    filter: brightness(0) saturate(100%) invert(18%) sepia(100%) saturate(7072%) hue-rotate(357deg) brightness(94%) contrast(118%);
}

/* Parte inferior */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 10px;
    width: 100%;
}
.footer-left {
    text-align: left;
}
.footer-right {
    text-align: right;
}

/* Mobile */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}
/* ===== NAV DROPDOWNS (UNIFICADO) ===== */

/* Reseteo por si hay bullets heredados en cualquier UL dentro del nav */
#nav-menu ul, #nav-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* El <li> que contiene el dropdown */
.nav-menu li.dropdown { position: relative; }

/* Botón del dropdown: con mismo look que tus links */
.dropbtn {
  background: transparent;
  border: 0;
  padding: 0;                 /* igual que tus <a> */
  color: #fff;
  font: inherit;
font-weight: bold;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s ease;
  text-decoration: none;
}
.dropbtn:hover { color: #b30f0f; }
.dropdown--open > .dropbtn { color: #b30f0f; }

/* Flechita animada */
.dropbtn .caret { transition: transform .2s ease; }
.dropdown--open > .dropbtn .caret { transform: rotate(45deg); }

/* === Panel flotante ESCRITORIO === */
ul.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  padding: 8px 0;
  margin: 0;
  z-index: 2000;
  /* oculto por defecto */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

ul.dropdown-panel li { list-style: none; }

ul.dropdown-panel a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .2s ease, color .2s ease;
}
ul.dropdown-panel a:hover {
  color: #ff3333;
  background: none;
}

/* Mostrar cuando está abierto */
.nav-menu li.dropdown.dropdown--open > ul.dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === MÓVIL (panel lateral abierto) === */
@media (max-width: 768px) {
  /* El panel se integra en la columna del menú lateral */
  ul.dropdown-panel {
    position: relative;
    top: 0; left: 0;
    min-width: unset;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 0 12px;   /* separarlo de la pared izq */
    margin: 0;
    /* En móvil controlamos con display para que no “ocupe” */
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-menu li.dropdown.dropdown--open > ul.dropdown-panel { display: block; }

  ul.dropdown-panel a {
    padding: 10px 0 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Mantener la línea gris bajo el botón, igual que tus links */
  .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: normal;
  }

}

ul.dropdown-panel li:last-child a {
  border-bottom: none;
}

.dropbtn .caret {
  display: inline-block;
  transition: transform .2s ease;
}

.vis-track {
  transition: transform 0.2s ease-out; /* movimiento más fluido */
  will-change: transform;
}

/* Cada fila ocupa toda la pantalla */
.vis-row {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Carrusel horizontal */
.vis-track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
  width: 100%;
}

/* Cada slide ocupa el viewport completo */
.vis-slide {
  flex: 0 0 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
}

/* PARA EL PLACEHOLDER ------------------------------------------------------------*/
/* ===========================
   Placeholder "Página en construcción"
   Añadir al final de estilos.css
   =========================== */

.ph-checkbox {
  /* checkbox oculto que controla la visibilidad */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

/* Panel visible por defecto */
/* Panel en el centro de la pantalla */
.placeholder-panel {
  box-sizing: border-box;
  max-width: 500px;
  width: 90%;
  padding: 20px 22px;
  background: rgba(255,255,255,0.97);
  color: #0a0a0a;
  border-left: 5px solid #b30f0f;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);

  /* Aquí la magia para centrar */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 2200;
  font-family: inherit;
  line-height: 1.4;
}


/* Texto principal */
.placeholder-panel .placeholder-content h3 {
  margin: 0 36px 6px 0; /* deja espacio para la X */
  font-size: 1.15rem;
  color: #111;
  font-weight: 700;
}

/* Párrafos secundarios */
.placeholder-panel .placeholder-content p {
  margin: 6px 0;
  color: #222;
  font-size: 0.95rem;
}

/* Texto pequeño */
.placeholder-panel .small {
  font-size: 0.82rem;
  color: #555;
  margin-top: 8px;
}

/* Botón "X" (es una <label> vinculada al checkbox) */
.ph-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #222;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  user-select: none;
}

/* Hover/focus accesible */
.ph-close:hover,
.ph-close:focus {
  transform: scale(1.06);
  background: rgba(0,0,0,0.06);
  outline: none;
}

/* Invisible cuando el checkbox está marcado (cerrado) */
#ph-close:checked ~ .placeholder-panel {
  display: none !important;
}

/* Responsivo: panel ancho completo en pantallas pequeñas */
@media (max-width: 640px) {
  .placeholder-panel {
    padding: 14px 14px;
    max-width: calc(100% - 24px);
  }
  .ph-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .placeholder-panel .placeholder-content h3 {
    font-size: 1.02rem;
    margin-right: 40px;
  }
}
/* PARA EL PLACEHOLDER ------------------------------------------------------------*/