/* ══════════════════════════════════════════
   style_cont.css — IngeoGOP · Contacto
   ══════════════════════════════════════════ */

/* ── Banner ── */
.banner {
    background-image: url("https://res.cloudinary.com/dwwji955o/image/upload/v1774722295/banner_contacto_d1nxya.webp");
    background-size: cover;
    background-position: center;
    min-height: 260px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.sombra {
    background: rgba(61, 149, 58, 0.78);
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 24px 20px;
    box-sizing: border-box;
}

/* Texto dentro del banner — clase renombrada para no chocar con .contenido global */
.banner-texto {
    text-align: center;
    max-width: 640px;
    width: 100%;
}

.banner-texto h1 {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 38px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.banner-texto h2 {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: rgba(255,255,255,0.92);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.banner-texto p {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    margin: 0;
}

/* ── Formulario ── */
.form {
    margin: 24px auto 0;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 44px 50px 36px;
    width: 80%;
    box-sizing: border-box;
    text-align: left;
}

.form input::placeholder { color: #a0cad4; }
.form textarea::placeholder { color: #a0cad4; }

#formulario h1 {
    color: #d0e0e3;
    font-size: 24px;
    margin: 0 0 24px 0;
    text-align: center;
    font-family: 'Arial Narrow', Arial, sans-serif;
}

#formulario {
    color: #6FDF5F;
    font-size: 17px;
    margin: 0 auto;
}

/* Labels */
#formulario label {
    display: block;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: #6FDF5F;
    margin-top: 12px;
    margin-bottom: 8px;
    padding-left: 4px;
    transition: all 0.3s ease;
}

/* Inputs */
#formulario input:not([type="radio"]) {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: #f0f4f5;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(91, 200, 217, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

#formulario input:not([type="radio"]):focus {
    border-color: rgba(91, 200, 217, 0.6);
}

/* Textarea container */
.textarea-container {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
}

#formulario .textarea-container textarea {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    color: #f0f4f5;
    width: 100%;
    height: 150px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(111, 223, 95, 0.3);
    border-radius: 6px;
    padding: 10px 14px 30px;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#formulario .textarea-container textarea:focus {
    border-color: rgba(111, 223, 95, 0.6);
}

/* Contador */
#contador {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #6FDF5F;
    pointer-events: none;
    opacity: 0.9;
}

/* Fieldset preferencia */
.pref {
    border: none;
    margin-top: 16px;
    padding: 0;
}

.pref legend {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    color: #6FDF5F;
    margin-bottom: 12px;
}

#formulario .pref label {
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    color: #d0e0e3;
    margin: 4px 0 4px 6px;
    padding-left: 0;
}

#formulario .pref input[type="radio"] {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    margin: 0;
    accent-color: #6FDF5F;
}

/* Botones */
.botones-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

button {
    width: auto;
    min-width: 130px;
    padding: 11px 28px;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #3D953A 0%, #2D7028 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(61, 149, 58, 0.3);
}

button[type="reset"] {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button[type="reset"]:hover {
    background: linear-gradient(135deg, #888 0%, #666 100%);
}

button:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #3D953A 100%);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

button:active { transform: translateY(0); }

form#formulario #aviso-sesion {
    display: none;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 15px;
    color: #3DD6EF;
    background: rgba(61, 214, 239, 0.07);
    border: 1px solid rgba(61, 214, 239, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Contacto
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
    .form {
        width: 92%;
        padding: 32px 28px 28px;
    }
}

@media (max-width: 768px) {

    /* Banner */
    .banner { min-height: auto; border-radius: 8px; }
    .sombra { min-height: auto; padding: 28px 16px; border-radius: 8px; }
    .banner-texto h1 { font-size: 26px; }
    .banner-texto h2 { font-size: 16px; }
    .banner-texto p  { font-size: 14px; }

    /* Formulario */
    .form {
        width: 96%;
        padding: 24px 18px 20px;
        margin-top: 16px;
    }

    #formulario h1 { font-size: 18px; margin-bottom: 16px; }
    #formulario label { font-size: 17px; }
    #formulario input:not([type="radio"]) { font-size: 15px; }
    #formulario .textarea-container textarea { font-size: 15px; }

    .pref legend { font-size: 17px; }
    #formulario .pref label { font-size: 15px; }

    .botones-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    button { width: 100%; font-size: 18px; text-align: center; }
}

@media (max-width: 480px) {
    .form {
        width: 100%;
        border-radius: 0;
        padding: 20px 14px 18px;
    }

    .banner { border-radius: 6px; }
    .sombra { border-radius: 6px; padding: 20px 14px; }
    .banner-texto h1 { font-size: 22px; }
    .banner-texto h2 { font-size: 15px; }
}