/* =========================
   RESET BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', sans-serif;
    background: linear-gradient(135deg, #f3f6fa 0%, #e6f0ef 100%);
    color: #1f2937;
    min-height: 100vh;
    padding: 30px 15px;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.container {
    max-width: 760px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(20, 99, 95, 0.10);
    border: 1px solid rgba(26, 139, 132, 0.08);
    position: relative;
    overflow: hidden;
}

/* Línea superior elegante */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1a8b84, #14635f);
}

/* =========================
   HEADER / BRAND
========================= */
/* ===== BLOQUE SUPERIOR ===== */
.brand {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #dbe7e6;
}

.brand-logo {
    width: 160px;       /* antes pequeño */
    max-width: 100%;
    height: auto;
    margin-bottom: 14px;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #14635f;
    letter-spacing: -0.4px;
}

.brand p {
    margin: 10px auto 0;
    font-size: 15px;
    color: #5f6f6d;
    max-width: 480px;
    line-height: 1.6;
}
/* =========================
   FORMULARIO
========================= */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #14635f;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8e3e7;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all 0.25s ease;
}

input[type="text"]::placeholder {
    color: #9ca3af;
}

input[type="text"]:focus {
    border-color: #1a8b84;
    box-shadow: 0 0 0 4px rgba(26, 139, 132, 0.12);
}

/* =========================
   BOTÓN
========================= */
button {
    background: linear-gradient(135deg, #1a8b84 0%, #14635f 100%);
    color: #ffffff;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 18px rgba(20, 99, 95, 0.18);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(20, 99, 95, 0.22);
}

button:active {
    transform: translateY(0);
}

/* =========================
   RESULTADOS
========================= */
.resultado {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.resultado h3 {
    font-size: 20px;
    color: #14635f;
    margin-bottom: 18px;
    font-weight: 700;
}

/* =========================
   ALERTA
========================= */
.alerta {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* =========================
   TARJETAS CERTIFICADOS
========================= */
.certificado {
    background: linear-gradient(135deg, #f8fffe 0%, #e6f0ef 100%);
    border: 1px solid #dbe9e7;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.certificado:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 99, 95, 0.08);
}

.certificado p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

.certificado strong {
    color: #14635f;
}

.certificado a {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
    color: #1a8b84;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease;
}

.certificado a:hover {
    color: #14635f;
    text-decoration: underline;
}

/* =========================
   MENSAJE VACÍO
========================= */
.resultado p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* =========================
   FOOTER EMPRESARIAL
========================= */
.footer-note {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    border-top: 1px solid #eef2f7;
    padding-top: 18px;
}

.footer-note strong {
    color: #14635f;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .container {
        padding: 28px 22px;
        margin: 20px auto;
        border-radius: 16px;
    }

    .brand h1 {
        font-size: 24px;
    }

    .brand p {
        font-size: 13px;
    }

    .resultado h3 {
        font-size: 18px;
    }

    input[type="text"],
    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }

    .container {
        padding: 22px 18px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .brand h1 {
        font-size: 22px;
    }
}