/* ===== Estilos generales ===== */
body {
    background: #0d0d0d;
    color: #f4f4f4;
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    animation: fadeInBody 1s ease-in;
}

/* Animación entrada del body */
@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Header con logo y título ===== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0 16px 0;
    background: rgba(13,13,13,0.95);
    box-shadow: 0 2px 12px 0 rgba(220,20,60,0.15);
    animation: slideDown 1s ease;
}

@keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo-sidetv {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px #0008);
    animation: logoPop 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes logoPop {
    0% { transform: scale(0.7) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}

/* ===== H1 Mejorado ===== */
h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #dc143c, #ff4c6a, #dc143c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGradient 6s linear infinite;
  text-shadow: 0 0 12px rgba(220,20,60,0.4);
}

@keyframes shineGradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ===== Contenedor principal ===== */
main {
    max-width: 1100px; /* más ancho */
    margin: 50px auto;
    background: rgba(20,20,20,0.98);
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 #dc143c33;
    padding: 50px 60px; /* más aire */
    animation: fadeInMain 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@keyframes fadeInMain {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Texto y secciones ===== */
section {
    font-size: 1.1rem;
    line-height: 1.8;
    width: 100%;
    max-width: 1000px;
    text-align: left;
    animation: fadeInText 1.5s ease;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

section h2 {
    color: #dc143c;
    margin-top: 40px;
    margin-bottom: 18px;
    font-size: 1.5rem;
    position: relative;
    animation: fadeSlideIn 1s ease;
}

/* Subrayado animado en los títulos */
section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #dc143c;
    transition: width 0.4s ease;
}

section h2:hover::after {
    width: 100%;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

section p {
    margin-bottom: 22px;
    animation: fadeInUp 0.8s ease;
}

section ul, section ol {
    margin: 0 0 22px 20px;
    padding: 0;
    animation: fadeInUp 1s ease;
}

/* Animación de listas */
section li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 6px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Links ===== */
a {
    color: #dc143c;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #ff4c6a;
    text-shadow: 0 0 6px #dc143c66;
}

/* ===== Botones Modernos ===== */
.btn-volver {
    margin-top: 30px;
    align-self: center;
}
.btn-volver, 
.btn-volver-footer {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.05rem;
  letter-spacing: 0.8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #b71c1c, #111);
  border: 2px solid #dc143c;
  box-shadow: 0 4px 14px rgba(220,20,60,0.25), inset 0 0 0 rgba(0,0,0,0);
  transition: all 0.3s ease;
}

.btn-volver:hover, 
.btn-volver-footer:hover {
  background: linear-gradient(135deg, #d32f2f, #222);
  border-color: #ff4c6a;
  box-shadow: 0 0 16px rgba(220,20,60,0.5), inset 0 0 6px rgba(220,20,60,0.3);
  transform: translateY(-3px) scale(1.05);
}

.btn-volver:active, 
.btn-volver-footer:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(220,20,60,0.25) inset;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    main {
        padding: 18px 12px;
    }
    h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    .logo-sidetv {
        width: 80px;
    }
    section {
        font-size: 1rem;
        max-width: 95vw;
    }
    section h2 {
        font-size: 1.2rem;
    }
}
