/* RESET Y TIPOGRAFÍA */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #05060a;
  color: #f5f5f5;
  line-height: 1.6;
}

/* ===========================
   HEADER
=========================== */

header {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 70%, #05060a 100%),
    url('fondo.png');
  background-size: cover;
  background-position: center;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  border-bottom: 2px solid #1a1f2b;
  box-shadow: 0 8px 20px rgba(0, 180, 255, 0.15);
}

/* BRILLO INFERIOR */
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 200, 255, 0.55) 0%,
    rgba(0, 180, 255, 0.25) 40%,
    rgba(0, 180, 255, 0) 80%
  );
  opacity: 0.55;
  animation: glowPulse 3s ease-in-out infinite;
}

/* LOGO */
.logo-img {
  height: 140px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.45));
}

/* TEXTO SERMANITAS */
.logo-text {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  display: inline-block;
  overflow: hidden;

  background: linear-gradient(
    90deg,
    #00d4ff 0%,
    #c8ffff 25%,
    #ffffff 50%,
    #c8ffff 75%,
    #00d4ff 100%
  );
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: gradientFlow 3s linear infinite;
}

.logo-text::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -200%;
  width: 35%;
  height: 120%;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.35) 35%,
    rgba(255,255,255,0) 70%
  );
  filter: blur(12px);
  transform: skewX(-30deg);
  animation: shine 2.8s ease-in-out infinite;
}

/* ===========================
   MENÚ
=========================== */

nav {
  margin-top: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #e8f7ff;
  background: rgba(0, 40, 80, 0.35);
  border: 1px solid rgba(0, 120, 255, 0.25);
  backdrop-filter: blur(4px);
  transition: 0.25s ease;
}

nav a:hover,
nav a.active {
  background: rgba(0, 120, 255, 0.55);
  border-color: rgba(0, 180, 255, 0.8);
  color: white;
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.4);
}

/* ===========================
   MAIN
=========================== */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* HERO */
.hero {
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #a0aec0;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #cbd5e0;
}

/* FRASE */
.quote {
  border-left: 3px solid #4fd1c5;
  padding-left: 0.75rem;
  margin: 1.5rem auto;
  color: #e2e8f0;
  font-size: 1rem;
  max-width: 600px;
}

/* SECCIONES */
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* TARJETAS */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #0b0d14;
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(0, 180, 255, 0.15);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
  background: #0f111a;
}

.card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  color: #e8f7ff;
  text-shadow: 0 0 6px rgba(0, 180, 255, 0.25);
}

.card p {
  font-size: 0.9rem;
  color: #cbd5e0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 120, 255, 0.15);
  border: 1px solid rgba(0, 180, 255, 0.35);
  color: #aee8ff;
  margin-bottom: 0.6rem;
}

/* BOTONES */
.button-row {
  margin-top: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid #4fd1c5;
  color: #0b0d14;
  background: #4fd1c5;
  font-weight: 500;
  transition: 0.2s;
}

.btn:hover {
  background: #38b2a6;
}

.btn-pdf {
  display: inline-block;
  padding: 12px 20px;
  background: #00aaff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  margin: 15px 0;
}

.btn-pdf:hover {
  background: #0088cc;
}

/* FOOTER */
.footer {
  border-top: 1px solid #222632;
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #718096;
  background: #05060a;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .logo-img {
    height: 110px;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  nav ul {
    gap: 0.6rem;
  }
}

/* ANIMACIONES */
@keyframes glowPulse {
  0% { transform: scaleX(1); opacity: 0.35; }
  50% { transform: scaleX(1.35); opacity: 0.9; }
  100% { transform: scaleX(1); opacity: 0.35; }
}

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

@keyframes shine {
  0% { left: -200%; }
  50% { left: 130%; }
  100% { left: 130%; }
}

/* Contenedor del logo centrado en columna */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tamaño del cubo */
.cubo-logo {
    width: 120px;
    height: 120px;
    perspective: 800px;
    margin-bottom: 10px;
}

/* Cubo 3D */
.cubo3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: giroCubo 6s linear infinite;
}

/* Efecto de iluminación al pasar el ratón */
.cubo3d:hover .cara {
    border-color: #00eaff;
    box-shadow: 0 0 15px #00eaff, 0 0 30px #00eaff inset;
    background: rgba(0, 234, 255, 0.15);
}

/* Caras del cubo */
.cara {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #0a0a0a;
    border: 2px solid #00aaff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cara img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Posiciones */
.cara1 { transform: rotateY(0deg) translateZ(60px); }
.cara2 { transform: rotateY(90deg) translateZ(60px); }
.cara3 { transform: rotateY(180deg) translateZ(60px); }
.cara4 { transform: rotateY(270deg) translateZ(60px); }
.cara5 { transform: rotateX(90deg) translateZ(60px); }
.cara6 { transform: rotateX(-90deg) translateZ(60px); }

/* Giro lateral */
@keyframes giroCubo {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* 🔥🔥🔥 INICIO CSS PARA MOSTRAR CÓDIGO SERMANITAS 🔥🔥🔥 */

.code-box {
  background: #0a0f1c;
  border: 2px solid #00aaff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 15px #0099ff88;
  overflow-x: auto;
}

.code-box code {
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  color: #e6f7ff;
  font-size: 15px;
}

.copy-btn {
  background: #00aaff;
  border: none;
  padding: 8px 14px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  float: right;
  margin-bottom: 10px;
  box-shadow: 0 0 10px #00aaffaa;
}

.copy-btn:hover {
  background: #0088cc;
}

/* 🔥🔥🔥 FIN CSS PARA MOSTRAR CÓDIGO SERMANITAS 🔥🔥🔥 */
