/* =============================================
   CONTACTO - Formulario + Mapa
   ============================================= */

.contacto-section {
    padding: 40px 0 50px;
}

/* Header */
.contacto-header {
    text-align: center;
    margin-bottom: 36px;
}

.contacto-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f0faf2;
    border-radius: 50%;
    margin-bottom: 14px;
}

.contacto-header-icon i {
    font-size: 28px;
    color: #0B5C21;
}

.contacto-header h1 {
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.contacto-header p {
    font-size: 15px;
    color: #666;
    margin: 0 auto;
    max-width: 520px;
}

/* Breadcrumb */
.contacto-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
    font-family: 'Lato', sans-serif;
}

.contacto-breadcrumb a {
    color: #0B5C21;
    text-decoration: none;
}

.contacto-breadcrumb a:hover {
    text-decoration: underline;
}

.contacto-breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

/* =====================
   LAYOUT 2 COLUMNAS
   ===================== */

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* =====================
   TARJETAS DE INFO
   ===================== */

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.contacto-info-card:hover {
    border-color: #c8e6cc;
}

.contacto-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #f0faf2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-info-icon i {
    font-size: 20px;
    color: #0B5C21;
}

.contacto-info-body h3 {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.contacto-info-body p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.contacto-info-body a {
    color: #0B5C21;
    text-decoration: none;
    font-weight: 600;
}

.contacto-info-body a:hover {
    text-decoration: underline;
}

/* Mapa en la zona de info */
.contacto-mapa {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.contacto-mapa iframe {
    width: 100%;
    height: 260px;
    display: block;
    border: 0;
}

/* =====================
   FORMULARIO
   ===================== */

.contacto-form-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.contacto-form-title {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.contacto-form-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px 0;
}

/* Campos del formulario */
.contacto-form .campo {
    margin-bottom: 18px;
}

.contacto-form .campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
}

.contacto-form .campo label .req {
    color: #c0392b;
}

.contacto-form .campo input[type="text"],
.contacto-form .campo input[type="email"],
.contacto-form .campo select,
.contacto-form .campo textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.contacto-form .campo input:focus,
.contacto-form .campo select:focus,
.contacto-form .campo textarea:focus {
    outline: none;
    border-color: #0B5C21;
    box-shadow: 0 0 0 3px rgba(11, 92, 33, 0.1);
}

.contacto-form .campo textarea {
    resize: vertical;
    min-height: 110px;
}

.contacto-form .campo select {
    cursor: pointer;
}

/* Captcha */
.contacto-captcha-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5ea 100%);
    border: 1px solid #c8e6cc;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contacto-captcha-box .captcha-lock {
    color: #0B5C21;
    font-size: 16px;
    flex-shrink: 0;
}

.contacto-captcha-box .captcha-pregunta {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.contacto-captcha-box .captcha-refresh {
    background: #fff;
    border: 1px solid #c8e6cc;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0B5C21;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.contacto-captcha-box .captcha-refresh:hover {
    background: #0B5C21;
    color: #fff;
}

/* Error / help */
.contacto-form .help-block {
    display: none;
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
}

.contacto-form .has-error input,
.contacto-form .has-error textarea,
.contacto-form .has-error select {
    border-color: #e74c3c;
}

.contacto-form .has-error .help-block {
    display: block;
}

/* Botón enviar */
.contacto-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #0B5C21;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.contacto-btn-submit:hover {
    background: #094a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(11, 92, 33, 0.3);
}

.contacto-btn-submit:active {
    transform: translateY(0);
}

/* Alert de éxito/error */
.contacto-form .alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
}

.contacto-form .alert-success {
    background: #e8f5ea;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contacto-form .alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* =====================
   STREET VIEW
   ===================== */

.contacto-streetview {
    margin-top: 40px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.contacto-streetview-header {
    background: #f8fdf9;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.contacto-streetview-header i {
    color: #0B5C21;
    font-size: 18px;
}

.contacto-streetview-header span {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.contacto-streetview iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: 0;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* En tablet, info arriba y form abajo */
    .contacto-info {
        order: 1;
    }

    .contacto-form-wrap {
        order: 2;
    }
}

@media (max-width: 768px) {
    .contacto-header h1 {
        font-size: 24px;
    }

    .contacto-form-wrap {
        padding: 22px 18px;
    }

    .contacto-streetview iframe {
        height: 300px;
    }
}

@media (max-width: 560px) {
    .contacto-section {
        padding: 24px 0 36px;
    }

    .contacto-header {
        margin-bottom: 24px;
    }

    .contacto-header-icon {
        width: 50px;
        height: 50px;
    }

    .contacto-header-icon i {
        font-size: 22px;
    }

    .contacto-header h1 {
        font-size: 20px;
    }

    .contacto-header p {
        font-size: 13px;
    }

    .contacto-info-card {
        padding: 14px;
        gap: 12px;
    }

    .contacto-info-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .contacto-info-icon i {
        font-size: 16px;
    }

    .contacto-info-body h3 {
        font-size: 13px;
    }

    .contacto-info-body p {
        font-size: 13px;
    }

    .contacto-form-wrap {
        padding: 18px 14px;
    }

    .contacto-form-title {
        font-size: 18px;
    }

    .contacto-captcha-box {
        flex-wrap: wrap;
        gap: 8px;
    }

    .contacto-captcha-box .captcha-pregunta {
        font-size: 15px;
    }

    .contacto-mapa iframe {
        height: 200px;
    }

    .contacto-streetview iframe {
        height: 250px;
    }

    .contacto-streetview-header {
        padding: 10px 14px;
    }

    .contacto-streetview-header span {
        font-size: 13px;
    }
}
