html {
    height: 100%;
}

body {
    margin: 0;
    background: #f1faf9;
    font-family: "Arial", sans-serif;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Encabezado */
.header {
    text-align: center;
    padding: 40px 20px 20px;
    background: #f1faf9;
}

.logo {
    width: 400px;
    max-width: 90%;
    margin-bottom: 15px;
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 8px;
}

.subtitle {
    color: #4a4a4a;
    font-size: 17px;
}

/* Contenedor del formulario */
.card {
    max-width: 700px;
    background: #ffffff;
    margin: 30px auto;
    padding: 45px 50px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card h3 {
    margin-top: 0;
    font-size: 22px;
    color: #1d3557;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background: #2b6cb0;
    border: none;
    color: white;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
    box-sizing: border-box;
}

button:hover {
    background: #1f4f80;
}

.result {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    background: #eef7ff;
    border-left: 4px solid #2b6cb0;
}

.footer {
    background: #1f4d45;        /* tono verde oscuro */
    color: #ffffff;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.footer-left h3,
.footer-right h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.footer-left p,
.footer-right p {
    line-height: 1.6;
    margin: 8px 0;
}

.social-icon {
    font-size: 24px;
    display: inline-block;
    margin-bottom: 10px;
    color: #ffffff;
    text-decoration: none;
}

.developer {
    text-align: center;
    color: #e3e3e3;
    font-size: 14px;
    margin-top: 30px;
}

/* -----------------------------
Ajustes para pantallas móviles
--------------------------------*/
@media (max-width: 768px) {

    .header {
        padding: 25px 10px 10px;
    }

    .logo {
        width: 260px;
        max-width: 85%;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 15px;
    }

    .card {
        margin: 20px 15px;
        padding: 30px 25px;
    }

    input {
        padding: 12px 10px;
        font-size: 15px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    /* Footer en una sola columna */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-left, .footer-right {
        width: 100%;
    }
}
