/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tipografía general */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f1f5f9;
    padding: 40px 20px;
}

/* Contenedor central */
body {
    max-width: 900px;
    margin: auto;
}

/* Títulos */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #38bdf8;
    letter-spacing: 2px;
}

/* Links como tarjetas */
p a {
    display: block;
    text-decoration: none;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 12px;
    color: #f1f5f9;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto hover elegante */
p a::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    top: 0;
    left: 0;
    z-index: 0;
    transition: width 0.3s ease;
}

p a:hover::before {
    width: 100%;
}

p a:hover {
    transform: translateY(-3px) scale(1.02);
    color: #0f172a;
}

p a span {
    position: relative;
    z-index: 1;
}

/* Texto descriptivo */
p:last-of-type {
    margin-top: 20px;
    line-height: 1.6;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Imagen de encabezado */
.header-image {
    display: flex;
    justify-content: center;
    margin: 25px 0 40px 0;
}

.header-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 16px;
    
    /* Estilo moderno */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(56, 189, 248, 0.3);

    /* Animación suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

h1 {
    text-align: center;
    font-size: 3rem;
    color: #38bdf8;
    text-shadow: 
        0 0 5px #38bdf8,
        0 0 10px #38bdf8,
        0 0 20px #22c55e;
    margin-bottom: 15px;
}

h2:not(.subtitulo) {
    font-size: 1.5rem;
    color: #38bdf8;
    margin-top: 50px;
    margin-bottom: 15px;
    text-align: center;
    padding-left: 10px;
}

.header-image img {
    width: 100%;
    max-width: 300px; /* 👈 más pequeña */
    height: auto;
    border-radius: 16px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(56, 189, 248, 0.25);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subtitulo {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 25px;
    position: relative;
}

.subtitulo::before,
.subtitulo::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.subtitulo::before {
    left: 15%;
}

.subtitulo::after {
    right: 15%;
}

.subtitulo span {
    padding: 0 15px;
    background: #0f172a; /* 👈 clave para evitar que las líneas tapen el texto */
    position: relative;
    z-index: 1;
}